/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
    overflow-x: hidden;
}

.demo-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
}

.demo-btn:active {
    transform: translateY(0);
}

.demo-btn i {
    font-size: 12px;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* ========== ЭКРАН АВТОРИЗАЦИИ ========== */
#loginScreen {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo i {
    font-size: 32px;
    color: #667eea;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.login-subtitle {
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

.login-form {
    margin-bottom: 24px;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    margin-top: 12px;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.spinner {
    display: inline-flex;
    gap: 4px;
}

.spinner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fed7d7;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #c53030;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.login-info {
    text-align: center;
    color: #718096;
    font-size: 14px;
    line-height: 1.5;
}

.login-info p {
    margin-bottom: 16px;
}

.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.forgot-password-link:hover {
    color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.forgot-password-link i {
    font-size: 13px;
}

.api-status {
    background: #e0f2fe;
    border: 1px solid #81d4fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #0277bd;
    line-height: 1.4;
    text-align: left;
}

.api-status i {
    margin-top: 2px;
    flex-shrink: 0;
}

.demo-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.3);
}

.demo-btn:active {
    transform: translateY(0);
}

.demo-btn i {
    font-size: 12px;
}

/* ========== ДЕМО РАСПИСАНИЕ ========== */
.schedule-demo h4 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.schedule-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.schedule-time {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.schedule-subject {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 4px;
}

.schedule-teacher {
    color: #718096;
    font-size: 13px;
}

/* ========== ГЛАВНЫЙ ЭКРАН ========== */
#mainScreen {
    background: #f7fafc;
}

.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.user-details h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.user-details p {
    font-size: 14px;
    color: #718096;
}

.logout-btn {
    padding: 8px 12px;
    background: #e2e8f0;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #cbd5e0;
}

/* ========== НАВИГАЦИОННОЕ МЕНЮ ========== */
.main-nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 80px; /* Высота header */
    z-index: 90;
}

.main-nav::-webkit-scrollbar {
    height: 4px;
}

.main-nav::-webkit-scrollbar-track {
    background: #f7fafc;
}

.main-nav::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

.nav-tab {
    flex-shrink: 0;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-tab i {
    font-size: 16px;
}

.nav-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* Класс для скрытия секций */
.section-hidden {
    display: none !important;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    flex: 1;
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin-bottom: 32px;
}

section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
}

/* ========== СТАТИСТИКА ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navigator-card {
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
}

.navigator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.navigator-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.navigator-card .stat-content h4,
.navigator-card .stat-content p {
    color: white;
}

/* Карточка отдела заботы */
.care-card {
    cursor: pointer;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    transition: all 0.3s ease;
}

.care-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.care-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.care-card .stat-content h4,
.care-card .stat-content p {
    color: white;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* ========== РАСПИСАНИЕ ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Кнопка "Перейти к урокам" */
.lessons-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.25);
}

.lessons-link-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.35);
    text-decoration: none;
    color: white;
}

.lessons-link-btn:active:not(:disabled) {
    transform: translateY(0);
}

.lessons-link-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lessons-link-btn i {
    font-size: 12px;
}

/* Список классов Edvibe */
.edvibe-classes-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Главная кнопка "Перейти к урокам" */
.lessons-main-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.lessons-main-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lessons-main-btn:active:not(:disabled) {
    transform: translateY(0);
}

.lessons-main-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.lessons-main-btn i:first-child {
    font-size: 20px;
}

.lessons-main-btn i:last-child {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.lessons-main-btn:hover:not(:disabled) i:last-child {
    transform: translateX(4px);
}

.classes-category h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.class-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.class-card:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #48bb78;
}

.class-card:active:not(:disabled) {
    transform: translateY(0);
}

.class-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.class-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.class-info {
    flex: 1;
    min-width: 0;
}

.class-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.class-meta {
    font-size: 12px;
    color: #718096;
}

.class-arrow {
    color: #cbd5e0;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.class-card:hover .class-arrow {
    color: #48bb78;
    transform: translateX(4px);
}

.loading-text {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-size: 14px;
}

.loading-text i {
    margin-right: 8px;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.week-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.week-btn:hover {
    background: #e2e8f0;
}

#currentWeek {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    min-width: 120px;
    text-align: center;
}

.schedule-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-grid {
    padding: 0;
}

.schedule-day {
    border-bottom: 1px solid #f1f5f9;
}

.schedule-day:last-child {
    border-bottom: none;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.day-name {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    letter-spacing: -0.01em;
    margin: 14px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    text-align: center;
}

.day-date {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

.lesson-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 0;
    padding: 20px 24px;
    margin: 0;
    border: none;
    border-left: 4px solid #3b82f6;
    position: relative;
    transition: all 0.2s ease;
}

.lesson-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(2px);
}

.lesson-item.free-lesson {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.lesson-item.free-lesson:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.lesson-time {
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.lesson-time .time-start {
    font-weight: 700;
}

.lesson-time .time-separator {
    color: #94a3b8;
    font-weight: 400;
    margin: 0 4px;
}

.lesson-time .time-end {
    font-weight: 500;
    color: #64748b;
}

.lesson-item.free-lesson .lesson-time {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.2);
}

.lesson-time::before {
    content: "🕐";
    font-size: 14px;
}

.lesson-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.lesson-info {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lesson-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lesson-info-item i {
    font-size: 12px;
    color: #94a3b8;
}

.lesson-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.lesson-payment-status.free {
    background: #d1fae5;
    color: #065f46;
}

.lesson-payment-status.paid {
    background: #dbeafe;
    color: #1e40af;
}

.lesson-payment-status.unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.lesson-description {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

.zoom-link {
    margin-left: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zoom-link:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.zoom-link i {
    font-size: 10px;
}

/* ========== КАЛЕНДАРЬ ЗАНЯТИЙ ========== */
.calendar-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calendar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

.calendar-header h3 {
    margin: 0 0 12px 0;
    font-size: 26px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.calendar-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.calendar-content {
    padding: 16px;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЗАНЯТИЯ ========== */
.additional-lessons-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 16px;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 2px solid rgba(0, 122, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.additional-lessons-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.2);
}

.additional-lessons-icon {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.additional-lessons-text {
    color: #1a202c;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.calendar-day {
    background: #f8f9fa;
    border-radius: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.calendar-day:last-child {
    margin-bottom: 0;
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.03) 100%);
    box-shadow: 0 4px 24px rgba(0, 122, 255, 0.15);
}

.calendar-day-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-day.today .calendar-day-header {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-bottom-color: transparent;
}

.calendar-date {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    letter-spacing: -0.3px;
}

.calendar-day.today .calendar-date {
    color: white;
    font-weight: 700;
}

.calendar-lessons {
    padding: 24px;
}

/* Стили для отсутствия данных */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
    font-size: 16px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 16px;
    margin: 20px;
    border: 2px dashed #cbd5e0;
}

.no-data:before {
    content: '📅';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.lesson-item {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: stretch;
    position: relative;
}

.lesson-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF 0%, #5856D6 50%, #30D158 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-item:last-child {
    margin-bottom: 0;
}

.lesson-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

.lesson-item:hover::before {
    opacity: 1;
}

.lesson-time-block {
    min-width: 120px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
}

.lesson-time-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 24px 0 0 24px;
    pointer-events: none;
}

.lesson-time-block::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lesson-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.lesson-time i {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.time-parts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.time-start {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.time-end {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.85;
    line-height: 1;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lesson-main {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.lesson-main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, #007AFF 0%, #5856D6 100%);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson-item:hover .lesson-main::before {
    opacity: 1;
}

/* ========== БЕСПЛАТНЫЕ ЗАНЯТИЯ ========== */
.lesson-item.free-lesson {
    border: 2px solid #34C759;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.05) 0%, rgba(48, 209, 88, 0.02) 100%);
    box-shadow: 
        0 4px 20px rgba(52, 199, 89, 0.15),
        0 2px 6px rgba(52, 199, 89, 0.08);
}

.lesson-item.free-lesson:hover {
    border-color: #30D158;
    box-shadow: 
        0 20px 60px rgba(52, 199, 89, 0.25),
        0 8px 24px rgba(52, 199, 89, 0.15);
}

.lesson-item.free-lesson .lesson-time-block {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    position: relative;
}

.lesson-item.free-lesson .lesson-time-block::after {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
}

.lesson-item.free-lesson .lesson-main::before {
    background: linear-gradient(180deg, #34C759 0%, #30D158 100%);
}

.free-lesson-badge {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lesson-time i {
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.9;
}

.lesson-time span {
    font-size: 16px;
    line-height: 1.2;
}

.lesson-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.lesson-group i {
    font-size: 18px;
    color: #007AFF;
    width: 22px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 122, 255, 0.2));
}

.lesson-group span {
    font-size: 19px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

.lesson-teacher,
.lesson-classroom {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 3px 0;
    padding: 8px 12px;
    background: rgba(0, 122, 255, 0.04);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.lesson-teacher:hover,
.lesson-classroom:hover {
    background: rgba(0, 122, 255, 0.08);
    transform: translateX(4px);
}

.lesson-teacher i,
.lesson-classroom i {
    font-size: 16px;
    color: #007AFF;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.lesson-teacher span,
.lesson-classroom span {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2e;
    line-height: 1.3;
}

.classroom-link {
    margin-left: 8px;
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.1);
    transition: all 0.2s ease;
}

.classroom-link:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: scale(1.05);
}

.lesson-teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4a5568;
    font-weight: 500;
}

.lesson-teacher i {
    color: #68d391;
    font-size: 14px;
}

.lesson-classroom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #718096;
}

.lesson-classroom i {
    color: #f6ad55;
    font-size: 14px;
}

.classroom-link {
    margin-left: 12px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.classroom-link:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: scale(1.05);
    color: #553c9a;
}

.classroom-link i {
    font-size: 12px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .calendar-header {
        padding: 24px 16px;
    }
    
    .calendar-header h3 {
        font-size: 22px;
    }
    
    .calendar-header p {
        font-size: 14px;
    }
    
    .calendar-content {
        padding: 12px;
    }
    
    .calendar-day-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    
    .calendar-date {
        font-size: 16px;
    }
    
    .calendar-weekday {
        font-size: 13px;
    }
    
    .calendar-lessons {
        padding: 16px;
    }
    
    .lesson-main {
        flex-direction: column;
        gap: 16px;
    }
    
    .lesson-time {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .lesson-time i {
        margin-right: 8px;
    }
    
    .lesson-details {
        gap: 12px;
    }
    
    .no-data {
        padding: 40px 16px;
        margin: 12px;
        font-size: 14px;
    }
    
    .no-data:before {
        font-size: 36px;
        margin-bottom: 12px;
    }
}

.no-lessons {
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    padding: 20px;
}

/* ========== ГРУППЫ ========== */
.groups-container {
    display: grid;
    gap: 16px;
}

.group-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.group-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.group-type {
    font-size: 14px;
    color: #718096;
}

.group-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #c6f6d5;
    color: #22543d;
}

.group-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.group-detail {
    text-align: center;
}

.group-detail-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* ========== ПРОФИЛЬ ========== */
.profile-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 500;
    color: #4a5568;
}

.profile-value {
    color: #2d3748;
    text-align: right;
}

/* ========== ЛОАДЕР ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    color: #4a5568;
    font-weight: 500;
}

/* ========== КАРТОЧКИ ГРУПП ========== */
.group-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.group-card h4 {
    color: #1a202c;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.group-card p {
    color: #2d3748;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-card p:last-child {
    margin-bottom: 0;
}

.group-card p i {
    color: #4a90e2;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.group-card strong {
    color: #1a202c;
    font-weight: 600;
}

/* Заголовок группы */
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f7fafc;
}

.group-header h4 {
    margin: 0;
    flex: 1;
}

.group-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-status.active {
    background: #c6f6d5;
    color: #22543d;
}

.group-status.completed {
    background: #fed7e2;
    color: #702459;
}

/* Детали группы */
.group-details {
    display: grid;
    gap: 8px;
}

.group-details p {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #f7fafc;
}

.group-details p:last-child {
    border-bottom: none;
}

/* Специальные стили для индивидуальных занятий */
.individual-card {
    border-left: 4px solid #38b2ac;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.individual-card .group-header h4 {
    color: #2c7a7b;
}

.individual-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(56, 178, 172, 0.15);
}

/* ========== ENHANCED КАРТОЧКИ ГРУПП (для детального отображения) ========== */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f7fafc;
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.group-info {
    display: grid;
    gap: 8px;
}

.group-info p {
    margin: 0;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-info strong {
    color: #1a202c;
    font-weight: 600;
    min-width: 120px;
}

.group-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.group-type.individual {
    background: #e6fffa;
    color: #234e52;
}

.group-type.group {
    background: #e6f3ff;
    color: #2b6cb0;
}

.active-group {
    border-left: 4px solid #38a169;
}

.completed-group {
    border-left: 4px solid #a0aec0;
    opacity: 0.8;
}

.next-lesson-info {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(56, 161, 105, 0.2);
    transition: all 0.3s ease;
}

/* Кликабельный блок следующего занятия с Zoom */
.next-lesson-info.clickable-lesson {
    background: linear-gradient(135deg, #ebf4ff 0%, #c3dafe 100%);
    border: 2px solid rgba(49, 130, 206, 0.3);
    transition: all 0.3s ease;
}

.next-lesson-info.clickable-lesson:hover {
    background: linear-gradient(135deg, #bee3f8 0%, #90cdf4 100%);
    border-color: rgba(49, 130, 206, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.3);
}

.next-lesson-info.clickable-lesson:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.zoom-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(43, 108, 176, 0.15);
    color: #2b6cb0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.next-lesson-info h4 {
    margin: 0 0 8px 0;
    color: #22543d;
    font-size: 16px;
    font-weight: 600;
}

.lesson-date {
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
    margin: 0;
}

.teacher-photo {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.teacher-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.classroom-info {
    display: none; /* Скрываем информацию об аудитории */
}

.group-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f7fafc;
    display: flex;
    justify-content: center;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .week-navigation {
        justify-content: center;
    }
    
    .group-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .profile-value {
        text-align: left;
    }
    
    /* Responsive schedule items */
    .schedule-item {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }
    
    .schedule-date {
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }
    
    .schedule-date strong {
        font-size: 14px;
    }
    
    .schedule-time {
        font-size: 13px;
    }
    
    /* Responsive group cards */
    .group-card, .card {
        padding: 16px 20px;
        margin-bottom: 16px;
    }
    
    .group-header, .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .group-info strong {
        min-width: auto;
    }
    
    .zoom-btn {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 24px 20px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .user-details h2 {
        font-size: 16px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-content h4 {
        font-size: 20px;
    }
    
    section h3 {
        font-size: 18px;
    }
    
    .group-card,
    .profile-card {
        padding: 20px;
    }
    
    .schedule-grid {
        padding: 20px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.text-muted {
    color: #718096;
}

/* ========== СТИЛИ ДЛЯ АУДИТОРИЙ ========== */
.lesson-classroom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: #4a5568;
}

.classroom-link {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(49, 130, 206, 0.1);
}

.classroom-link:hover {
    color: #2c5aa0;
    background: rgba(49, 130, 206, 0.2);
}

.classroom-link i {
    font-size: 12px;
}

.lesson-item {
    padding: 12px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lesson-details {
    margin-left: 80px;
}

.lesson-time {
    float: left;
    width: 70px;
    font-weight: 600;
    color: #2d3748;
}

.lesson-subject {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 2px;
}

.lesson-teacher {
    font-size: 13px;
    color: #718096;
}

/* ========== НОВЫЕ СТИЛИ ДЛЯ ENHANCED ФУНКЦИЙ ========== */

/* Типы групп */
.group-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.group-type.individual {
    background: #fef2e9;
    color: #d69e2e;
}

.group-type.group {
    background: #e6fffa;
    color: #319795;
}

/* Zoom кнопки */
.zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, #2a69ac 0%, #2b77d0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 108, 176, 0.4);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
}

/* Фото преподавателя */
.teacher-photo {
    margin: 12px 0;
}

.teacher-photo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

/* Действия группы */
.group-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}

.classroom-info {
    padding: 4px 8px;
    background: #f7fafc;
    color: #4a5568;
    border-radius: 4px;
    font-size: 12px;
}

/* Превью домашних заданий */
.homework-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
}

.homework-preview h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #4c51bf;
}

.homework-preview p {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.homework-preview small {
    font-size: 11px;
    color: #718096;
}

/* Секция домашних заданий */
#homework-section {
    margin: 24px 0;
}

.homework-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.homework-group {
    margin-bottom: 24px;
}

.homework-group h3 {
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 16px;
}

.homework-item {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.homework-item.current {
    background: #f0fff4;
    border: 1px solid #68d391;
}

.homework-item.past {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
}

.homework-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.group-name {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.homework-date {
    font-size: 12px;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 12px;
}

.homework-content-text {
    font-size: 14px;
    line-height: 1.5;
    color: #2d3748;
}

.homework-content-text p {
    margin-bottom: 8px;
}

.homework-content-text a {
    color: #3182ce;
    text-decoration: none;
}

.homework-content-text a:hover {
    text-decoration: underline;
}

/* Секция финансов */
#finance-section {
    margin: 24px 0;
}

.finance-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.finance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.finance-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f1f5ff 100%);
    border-radius: 8px;
    border: 1px solid #e6efff;
}

.finance-card.academic-hours {
    background: linear-gradient(135deg, #e6fffa 0%, #d6f5f5 100%);
    border-color: #4299e1;
}

.finance-card.balance {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border-color: #68d391;
}

.finance-card.incomes {
    background: linear-gradient(135deg, #fffbf0 0%, #fef5e7 100%);
    border-color: #f6ad55;
}

.finance-card.outgoes {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #fc8181;
}

.finance-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.finance-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.finance-card.clickable:active {
    transform: translateY(0);
}

.finance-icon {
    font-size: 24px;
    opacity: 0.8;
}

.finance-info h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.finance-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.debt-info {
    font-size: 12px;
    color: #e53e3e;
    font-weight: 500;
    margin-top: 4px;
}

/* Баланс по занятиям */
.groups-balance {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9ff;
    border-radius: 8px;
    border: 1px solid #e6efff;
}

.groups-balance h3 {
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 16px;
}

.groups-balance-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #edf2f7;
}

.group-name {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.group-balance-details {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.balance-units {
    color: #4299e1;
    font-weight: 600;
}

.balance-money {
    color: #38a169;
    font-weight: 600;
}

/* Транзакции */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.transactions h3 {
    margin: 0;
    color: #2d3748;
    font-size: 16px;
}

.transaction-filter {
    display: flex;
    gap: 4px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

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

.transaction-date {
    width: 80px;
    font-size: 12px;
    color: #718096;
}

.transaction-description {
    flex: 1;
    font-size: 14px;
    color: #4a5568;
    margin: 0 12px;
}

.transaction-amount {
    font-weight: 600;
    font-size: 14px;
}

.transaction-amount.positive {
    color: #38a169;
}

.transaction-amount.negative {
    color: #e53e3e;
}

/* Кнопка "Показать еще" для транзакций */
.show-more-btn {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

/* Баланс в хедере */
.balance-display {
    text-align: left;
}

.balance-amount {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #38a169;
    line-height: 1.2;
}

.balance-label {
    display: block;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .group-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zoom-btn {
        text-align: center;
        justify-content: center;
    }
    
    .finance-cards {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .transaction-date,
    .transaction-amount {
        width: auto;
    }
}

/* ========== ENHANCED SCHEDULE STYLES ========== */
.schedule-list h4 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.schedule-item {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: white;
    border-radius: 16px;
    border-left: 5px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left-color: #4a90e2;
}

.schedule-item.today {
    border-left-color: #e53e3e;
    background: linear-gradient(135deg, #ffffff 0%, #fef5e7 100%);
    border-color: rgba(229, 62, 62, 0.2);
}

.schedule-item.tomorrow {
    border-left-color: #3182ce;
    background: linear-gradient(135deg, #ffffff 0%, #ebf8ff 100%);
    border-color: rgba(49, 130, 206, 0.2);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
    padding: 12px 8px;
    background: rgba(74, 144, 226, 0.08);
    border-radius: 12px;
    border: 2px solid rgba(74, 144, 226, 0.15);
}

.schedule-date strong {
    font-size: 14px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.schedule-time {
    font-size: 14px;
    color: #4a90e2;
    font-weight: 600;
    background: rgba(74, 144, 226, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.schedule-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-content h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.3;
}

.schedule-content p {
    margin: 0;
    font-size: 15px;
    color: #2d3748;
    line-height: 1.5;
}

.teacher, .classroom {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher:before {
    content: "👨‍🏫";
}

.classroom:before {
    content: "🏛️";
}

.zoom-info {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f7fafc;
}

.zoom-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zoom-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.next-lesson-info {
    text-align: center;
}

.next-lesson-date {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.next-lesson-group {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .schedule-date {
        min-width: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ========== ENHANCED GROUPS STYLES ========== */
#groupsContainer h4 {
    margin: 24px 0 16px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.card.active-group {
    border-left: 4px solid #48bb78;
}

.card.completed-group {
    border-left: 4px solid #a0aec0;
    opacity: 0.8;
}

.group-status.completed {
    background: #a0aec0;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.next-lesson-info {
    margin-top: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #e6fffa 0%, #f0fff4 100%);
    border-radius: 8px;
    border-left: 3px solid #48bb78;
}

.next-lesson-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}

.lesson-date {
    margin: 4px 0 12px 0;
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.classroom-info {
    margin-top: 8px;
    font-size: 13px;
    color: #718096;
    padding: 4px 8px;
    background: #f7fafc;
    border-radius: 6px;
    display: inline-block;
}

/* ========== СТИЛИ ДЛЯ ПРОПУЩЕННЫХ И ОПЛАТЫ ЗАНЯТИЙ ========== */

/* Пропущенные занятия - серые и полупрозрачные */
.schedule-item.lesson-passed {
    opacity: 0.6;
    background: #f7fafc;
    border-left-color: #cbd5e0;
}

.schedule-item.lesson-passed:hover {
    opacity: 0.75;
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.schedule-item.lesson-passed .schedule-date {
    background: rgba(203, 213, 224, 0.3);
    border-color: rgba(203, 213, 224, 0.5);
}

.schedule-item.lesson-passed .schedule-content h4 {
    color: #718096;
    text-decoration: line-through;
}

/* Статус-бейджи */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    white-space: nowrap;
}

/* Активное платное занятие */
.status-badge.active-paid {
    background: linear-gradient(135deg, #fef5e7 0%, #fff5cc 100%);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Активное бесплатное занятие */
.status-badge.active-free {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Оплачиваемый пропуск */
.status-badge.passed-paid {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Неоплачиваемый пропуск */
.status-badge.passed-free {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}
