/* Глобальные отступы */
body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #060917 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Poppins', 'Courier New', monospace;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Отступы для основного контента */
.main-content {
    margin-left: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 80px 25px 25px 25px;
}

@media (max-width: 768px) {
    .main-content {
        padding: 70px 15px 15px 15px;
    }
}

/* ========== ХАЙ-ТЕК СТИЛЬ ========== */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1535;
    --bg-card: rgba(18, 25, 55, 0.95);
    --neon-blue: #00d4ff;
    --neon-purple: #7b2cbf;
    --neon-green: #00ff88;
    --neon-red: #ff3366;
    --neon-yellow: #ffd700;
    --text-primary: #e0e0ff;
    --text-secondary: #8a8ab3;
    --border-glow: 0 0 10px rgba(0, 212, 255, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #060917 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', 'Poppins', 'Courier New', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== БОКОВОЕ МЕНЮ ========== */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
    left: 0;
}

/* Оверлей для затемнения при открытом меню на мобильных */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.sidebar.open ~ .sidebar-overlay {
    display: block;
}

.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-bottom: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.close-sidebar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    transition: left 0.5s;
}

.sidebar-nav a:hover::before {
    left: 100%;
}

.sidebar-nav a:hover {
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
    transform: translateX(5px);
}

.sidebar-nav hr {
    margin: 15px 20px;
    border-color: rgba(0, 212, 255, 0.2);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    margin-left: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 20px;
}

.main-content.shifted {
    margin-left: 300px;
}

/* Кнопка меню - улучшенная */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 998;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--border-glow);
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-toggle span {
    font-size: 14px;
    font-weight: 500;
}

.menu-toggle:hover {
    background: var(--neon-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--neon-blue);
    transform: scale(1.05);
}

/* ========== НЕОНОВЫЕ НАДПИСИ ========== */
h1, h2, h3, h4, h5, h6,
.fc-toolbar-title,
.current-month h2,
.stat-value,
.modal-title {
    text-shadow: 0 0 5px currentColor;
}

h1 {
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 5px var(--neon-blue); }
    100% { text-shadow: 0 0 20px var(--neon-blue); }
}

/* Неоновый текст для ссылок и кнопок */
a, .btn, .nav-link {
    transition: all 0.3s;
}

a:hover, .btn:hover {
    text-shadow: 0 0 8px currentColor;
}

/* ========== КАРТОЧКИ (без белого фона) ========== */
.card, .glass-card, .stat-card, .modal-content {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
}

.card-header, .modal-header {
    background: rgba(0, 212, 255, 0.05) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.card-body, .modal-body {
    background: transparent !important;
}

/* ========== КАЛЕНДАРЬ ========== */
.custom-calendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 60px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 25px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--neon-blue);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--neon-blue);
}

.current-month h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--neon-blue);
    letter-spacing: 2px;
}

.current-month span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.today-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.today-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* Дни недели */
.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 0 3px var(--neon-blue);
}

/* Сетка календаря */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 15px 10px;
    min-height: 120px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover {
    border-color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.05);
}

.calendar-day.other-month {
    opacity: 0.4;
}

.calendar-day.today {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.day-number {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.calendar-day.today .day-number {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.day-content {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    margin-top: 5px;
}

.day-content i, .day-content span {
    text-shadow: 0 0 3px currentColor;
}

.rank-badge {
    margin-top: 5px;
    font-size: 10px;
    color: var(--neon-yellow);
    text-shadow: 0 0 3px var(--neon-yellow);
}

/* ========== СТАТИСТИКА ========== */
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-blue);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* ========== ТАБЛИЦЫ ========== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 3px var(--neon-blue);
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* ========== ФОРМЫ ========== */
.form-control, .form-select {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    background: rgba(10, 14, 39, 0.9);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

.form-label {
    color: var(--neon-blue);
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 0 3px var(--neon-blue);
}

/* ========== КНОПКИ ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    text-shadow: 0 0 5px white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--neon-red), #cc0044);
    border: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== УВЕДОМЛЕНИЕ ========== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--neon-green), #00cc66);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1100;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.toast-notification.show {
    transform: translateX(0);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        left: -85%;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .menu-toggle {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .menu-toggle span {
        display: none;
    }
    
    .custom-calendar-wrapper {
        margin-top: 50px;
        padding: 10px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 8px 5px;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .day-content {
        font-size: 0.7rem;
    }
    
    .weekday {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .current-month h2 {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-day {
        min-height: 65px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .weekday {
        font-size: 0.6rem;
        padding: 5px;
    }
    
    .day-number {
        font-size: 0.8rem;
    }
}

/* ========== ЗАГОЛОВКИ КАРТОЧЕК ========== */
.card-header h5, .card-header h6, .modal-header h5 {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 5px var(--neon-blue);
    font-weight: 600;
}

.card-header i, .modal-header i {
    color: var(--neon-blue);
    margin-right: 8px;
}

/* Убираем белый фон у всех карточек */
.card, .card-header, .card-body, .modal-content, .modal-header, .modal-body, .modal-footer {
    background: transparent !important;
}

.modal-content {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
}

/* Таблицы - убираем белый фон */
.table {
    color: var(--text-primary);
    background: transparent;
}

.table thead th {
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 3px var(--neon-blue);
}

.table tbody tr {
    background: transparent;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.table td {
    color: var(--text-primary);
    border: none;
}

/* Секции отчёта - компактный дизайн */
.report-section {
    margin-bottom: 20px;
}

.report-section h6 {
    color: var(--neon-blue);
    text-shadow: 0 0 3px var(--neon-blue);
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-section h6 i {
    font-size: 1.1rem;
}

/* Компактная таблица смен */
.shifts-table {
    font-size: 0.85rem;
}

.shifts-table td, .shifts-table th {
    padding: 8px 6px;
}

/* Карточка корректировок */
.adjustments-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 15px;
    margin-top: 0;
}

.adjustments-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.adjustments-item:last-child {
    border-bottom: none;
}

.adjustments-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adjustments-value {
    font-weight: bold;
}

.adjustments-value.positive {
    color: var(--neon-green);
    text-shadow: 0 0 3px var(--neon-green);
}

.adjustments-value.negative {
    color: var(--neon-red);
    text-shadow: 0 0 3px var(--neon-red);
}

/* Итоговая карточка */
.total-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    border: 1px solid var(--neon-blue);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.total-card .total-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.total-card .total-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

/* Форма редактирования */
.form-label {
    color: var(--neon-blue);
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 0 3px var(--neon-blue);
}

/* Убираем белый фон у статистики */
.stat-card {
    background: var(--bg-card) !important;
}

/* ========== КОНТЕЙНЕРЫ И ОТСТУПЫ ========== */
.container-fluid {
    padding: 20px !important;
}

.report-container, .expenses-container, .statistics-dashboard, .custom-calendar-wrapper {
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 10px !important;
    }
}

/* ========== КАРТОЧКИ (исправляем фон) ========== */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
    margin-bottom: 20px;
}

.glass-card .card-header {
    background: rgba(0, 212, 255, 0.08) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 15px 20px;
}

.glass-card .card-header h5, 
.glass-card .card-header h6 {
    margin: 0;
    color: var(--neon-blue) !important;
    text-shadow: 0 0 5px var(--neon-blue);
}

.glass-card .card-body {
    padding: 20px;
    background: transparent !important;
}

/* Таблицы с отступами */
.table-responsive {
    padding: 0;
}

.table {
    margin-bottom: 0;
    background: transparent !important;
}

.table td, .table th {
    padding: 12px 15px !important;
    vertical-align: middle;
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.table thead th {
    background: rgba(0, 212, 255, 0.08) !important;
    border-bottom: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-weight: 600;
    padding: 12px 15px !important;
}

/* Сообщение "Нет данных" */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: transparent !important;
}

.empty-state i {
    font-size: 48px;
    color: var(--neon-blue);
    opacity: 0.5;
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-secondary);
    margin: 0;
}

/* Список групп для расходов */
.list-group-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1) !important;
    padding: 15px 20px !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

/* Отступы для секций */
.report-section {
    margin-bottom: 25px;
}

.shifts-table td, .shifts-table th {
    padding: 10px 12px !important;
}

/* Карточка итога */
.total-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 44, 191, 0.15));
    border: 1px solid var(--neon-blue);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-top: 0;
}

/* Отступы для форм */
.form-group {
    margin-bottom: 20px;
}

.form-control, .form-select {
    padding: 10px 15px;
}

/* Статистика */
.stat-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 212, 255, 0.2);
    height: 100%;
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-blue);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ========== ССЫЛКИ И ТЕКСТ ========== */
a {
    color: var(--neon-blue);
    transition: all 0.3s;
}

a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple);
}

.text-primary {
    color: var(--neon-blue) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-success {
    color: var(--neon-green) !important;
}

.text-danger {
    color: var(--neon-red) !important;
}

/* Плейсхолдеры */
::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.5;
}

/* Кнопка "Назад" в стиле */
.btn-outline-secondary {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.btn-outline-secondary:hover {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    color: var(--bg-primary);
}

/* Убираем белый фон у всех alert */
.alert {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
}

.alert-danger {
    background: rgba(255, 51, 102, 0.1);
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

/* Модальное окно - мобильная адаптация */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 20px);
}

@media (max-width: 768px) {
    .modal {
        padding: 0 !important;
    }
    
    .modal-dialog {
        margin: 10px;
        width: auto;
    }
    
    .modal-content {
        border-radius: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    /* Убираем лишние отступы */
    .modal-header {
        padding: 15px;
        flex-shrink: 0;
    }
    
    .modal-body {
        padding: 15px;
        flex: 1;
        overflow-y: auto;
    }
    
    .modal-footer {
        padding: 12px 15px;
        flex-shrink: 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-footer .btn {
        margin: 0;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Увеличиваем поля ввода для удобства на мобильных */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Кнопка закрытия */
    .btn-close {
        opacity: 0.8;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .modal-body {
        padding: 12px;
    }
}

/* Супер-компактная мобильная версия */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 5px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 10px 12px;
    }
    
    .modal-header h5 {
        font-size: 1rem;
        margin: 0;
    }
    
    .modal-body {
        padding: 10px 12px;
    }
    
    .modal-footer {
        padding: 8px 12px;
    }
    
    .modal-footer .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .form-label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .form-control, .form-select {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .mb-3 {
        margin-bottom: 8px;
    }
    
    .btn {
        font-size: 12px;
    }
    
    .btn i {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 5px;
    }
    
    .modal-body {
        padding: 8px 10px;
    }
    
    .modal-footer {
        gap: 5px;
    }
    
    .modal-footer .btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .form-control, .form-select {
        padding: 5px 8px;
        font-size: 13px;
    }
    
    .form-label {
        font-size: 11px;
    }
    
    .mb-3 {
        margin-bottom: 6px;
    }
}

/* ========== КАЛЕНДАРЬ - МОБИЛЬНАЯ ВЕРСИЯ ========== */
.custom-calendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
    margin-top: 60px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    padding: 8px 4px;
    min-height: 70px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.day-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.7rem;
}

.day-content i {
    font-size: 0.65rem;
}

.day-content span {
    font-size: 0.65rem;
}

.rank-badge {
    margin-top: 2px;
    font-size: 8px;
    text-align: center;
    color: var(--neon-yellow);
}

/* Мобильная версия - супер компактная */
@media (max-width: 768px) {
    .custom-calendar-wrapper {
        padding: 5px;
        margin-top: 55px;
    }
    
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        min-height: 55px;
        padding: 4px 2px;
        border-radius: 6px;
    }
    
    .day-number {
        font-size: 0.7rem;
        margin-bottom: 2px;
    }
    
    .day-content {
        gap: 2px;
    }
    
    .day-content i {
        font-size: 0.55rem;
    }
    
    .day-content span {
        font-size: 0.55rem;
    }
    
    .rank-badge {
        font-size: 6px;
        margin-top: 1px;
    }
    
    /* Скрываем текст "Вых", "Отп", "Бол" - показываем только иконки */
    .day-content span {
        display: none;
    }
    
    /* Показываем только иконку */
    .day-content i {
        font-size: 0.7rem;
    }
    
    /* Для рабочих дней показываем часы */
    .day-content span:not(:empty) {
        display: inline;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 48px;
        padding: 3px 1px;
    }
    
    .day-number {
        font-size: 0.65rem;
    }
    
    .day-content i {
        font-size: 0.6rem;
    }
}

/* Навигация календаря - мобильная */
@media (max-width: 768px) {
    .calendar-nav {
        padding: 8px 12px;
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .current-month h2 {
        font-size: 1rem;
    }
    
    .current-month span {
        font-size: 0.7rem;
    }
    
    .today-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .weekdays {
        gap: 3px;
        margin-bottom: 8px;
    }
    
    .weekday {
        padding: 6px 2px;
        font-size: 0.6rem;
    }
}

/* Исправление карточек на главной странице */
.welcome-screen {
    width: 100%;
    overflow-x: hidden;
    padding: 20px;
}

.welcome-screen .row {
    margin: 0 auto;
    max-width: 1000px;
}

.welcome-screen .stat-card {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .welcome-screen .stat-card {
        padding: 15px 10px;
    }
    
    .welcome-screen .stat-card i {
        font-size: 30px !important;
    }
}

/* Исправление для карточки Адаптивность */
.stat-card .stat-label {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .stat-card .stat-label {
        font-size: 0.75rem;
        white-space: normal;
        word-break: break-word;
    }
    
    .stat-card {
        padding: 10px 5px !important;
    }
    
    .stat-card i {
        font-size: 25px !important;
    }
}

/* Специально для кнопки регистрации */
.btn-register {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: transparent;
}

.btn-register:hover {
    background: var(--neon-blue);
    color: #0a0e27 !important;
    text-shadow: none;
}

.btn-register:hover i {
    color: #0a0e27 !important;
}

/* Исправление для кнопки меню - добавляем отступ сверху */
.main-content {
    margin-left: 0;
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 50px 30px 30px 30px;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .main-content {
        padding: 30px 15px 15px 15px;
    }
}

/* Кнопка меню - делаем компактнее и не перекрывающей */
.menu-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 998;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--border-glow);
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-toggle span {
    font-size: 12px;
    font-weight: 500;
}

/* Дополнительный отступ для заголовков на страницах */
h1, .page-title {
    margin-top: 10px;
    padding-top: 5px;
}

/* Для страницы статистики */
.statistics-dashboard h1,
.report-container h1,
.expenses-container h1,
.custom-calendar-wrapper h1,
.admin-container h1 {
    margin-top: 5px;
    padding-top: 0;
}