/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.nav-brand .logo {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* Login Page */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.login-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.login-box h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    gap: 1rem;
}

.login-links span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.login-links a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.login-info {
    background: var(--gradient-2);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.login-info ul {
    list-style: none;
    padding: 0;
}

.login-info li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.login-info li:last-child {
    border-bottom: none;
}

/* Cabinet Page */
.cabinet-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
}

.cabinet-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Sidebar */
.cabinet-sidebar {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.user-profile h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.user-status {
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.user-id {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.cabinet-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cabinet-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    transition: all 0.3s ease;
}

.cabinet-nav-item .icon {
    font-size: 1.3rem;
}

.cabinet-nav-item:hover {
    background: var(--light-gray);
    color: var(--light-blue);
    transform: translateX(4px);
}

.cabinet-nav-item.active {
    background: var(--gradient-2);
    color: var(--white);
}

/* Cabinet Content */
.cabinet-content {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    min-height: 600px;
}

.cabinet-section {
    display: none;
}

.cabinet-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.cabinet-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #E8EEF5 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.widget {
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
    padding: 2rem;
    border-radius: 15px;
}

.widget h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.course-item, .event-item {
    background: var(--white);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.course-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.event-item {
    display: flex;
    gap: 1rem;
}

.event-date {
    background: var(--gradient-2);
    color: var(--white);
    padding: 0.8rem;
    border-radius: 10px;
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.event-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Profile Form */
.profile-form {
    max-width: 800px;
}

/* Photo Upload */
.photo-upload-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-upload-controls {
    flex: 1;
}

.photo-upload-controls button {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.photo-hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Events */
.events-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
    padding: 2rem;
    border-radius: 15px;
}

.event-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 1rem;
}

.badge-confirmed {
    background: #10b981;
    color: white;
}

.badge-pending {
    background: #f59e0b;
    color: white;
}

/* Documents */
.documents-list {
    display: grid;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
    padding: 1.5rem;
    border-radius: 15px;
}

.doc-icon {
    font-size: 2.5rem;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.doc-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-download {
    padding: 0.6rem 1.5rem;
    background: var(--gradient-2);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Payments */
.payment-info {
    display: grid;
    gap: 2rem;
}

.payment-status {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}

.payment-status h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.status-paid {
    font-size: 1.2rem;
    font-weight: 700;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th,
.payment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payment-table th {
    font-weight: 700;
    color: var(--text-dark);
    background: var(--light-gray);
}

/* Education Page */
.education-page {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f0f9ff 0%, #E8EEF5 100%);
    min-height: calc(100vh - 200px);
}

.education-header {
    text-align: center;
    margin-bottom: 3rem;
}

.education-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.education-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Course Filters */
.course-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-medium);
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--light-blue);
    color: var(--light-blue);
}

.filter-btn.active {
    background: var(--gradient-2);
    color: var(--white);
    border-color: transparent;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 1;
}

.badge-intermediate {
    background: #f59e0b;
}

.badge-advanced {
    background: #ef4444;
}

.course-image {
    background: var(--gradient-2);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-icon {
    font-size: 4rem;
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.course-content > p {
    color: var(--text-medium);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.course-meta span {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 600;
}

.course-progress {
    margin-bottom: 1.5rem;
}

.course-progress span {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-medium);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Webinars */
.webinars-section {
    margin-top: 4rem;
}

.webinars-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.webinar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.webinar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.webinar-date {
    background: var(--gradient-2);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    min-width: 100px;
}

.webinar-date .day {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.webinar-date .month {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.webinar-date .time {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.webinar-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.webinar-info p {
    color: var(--text-medium);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.webinar-duration {
    color: var(--text-gray) !important;
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
    }

    .cabinet-sidebar {
        position: static;
    }

    .login-container {
        grid-template-columns: 1fr;
    }

    .login-info {
        order: -1;
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .webinars-grid {
        grid-template-columns: 1fr;
    }

    .webinar-card {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-widgets {
        grid-template-columns: 1fr;
    }
}
