/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}

.brand-logo {
    height: 32px;
    width: auto;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 0.875rem;
}

.user-btn:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 4px;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.logout-btn {
    color: #dc2626;
}

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


/* Forms */
.auth-form {
   padding: 2rem;
}

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

.form-group {
   margin-bottom: 1.5rem;
}

.form-group label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 500;
   color: var(--text-primary);
}

.form-input {
   width: 100%;
   padding: 12px;
   border: 1px solid var(--border);
   border-radius: var(--border-radius);
   font-size: 1rem;
   transition: var(--transition);
}

.form-input:focus {
   outline: none;
   border-color: var(--primary-color);
   box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-switch {
   text-align: center;
   margin-top: 1rem;
   color: var(--text-secondary);
}

.auth-switch a {
   color: var(--primary-color);
   text-decoration: none;
}

.auth-switch a:hover {
   text-decoration: underline;
}


/* Breadcrumb Styles */
.breadcrumb {
    /* No border-bottom — the header already has one; a second here made a doubled line. */
    padding: 12px 0;
}

.breadcrumb-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #9ca3af;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #6b7280;
}

/* Course Main Styles */
.course-main {
    min-height: calc(100vh - 120px);
}

.course-header {
    color: white;
    padding: 0;
}

.course-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.course-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.course-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.875rem;
}

.course-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-meta i {
    opacity: 0.8;
}

.course-rating .stars {
    display: flex;
    gap: 2px;
    margin-right: 8px;
}

.course-rating .star,
.stars .fa-star {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.course-rating .star.filled,
.stars .fa-star.filled {
    color: #fbbf24;
}

.course-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.progress-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.progress-details {
    opacity: 0.8;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.course-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.course-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.course-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Course Content Styles */
.course-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.tab-button {
    background: none;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #374151;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.curriculum-section,
.assessments-section {
    margin-bottom: 48px;
}

.curriculum-section h3,
.assessments-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lessons-list,
.assessments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-item,
.assessment-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-item:hover,
.assessment-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.lesson-info h4,
.assessment-info h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

.lesson-meta,
.assessment-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: #6b7280;
}

.lesson-type,
.assessment-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.assessment-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.4;
}

.lesson-status i,
.assessment-actions .btn {
    color: #10b981;
}

.completed {
    color: #10b981;
}

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state p {
    font-size: 0.875rem;
}

.coming-soon {
    text-align: center;
    padding: 64px 24px;
    color: #9ca3af;
}

.coming-soon i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #d1d5db;
}

.coming-soon p {
    font-size: 1rem;
}

/* Social Sharing */
.social-sharing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid #e5e7eb;
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.facebook:hover {
    background: #166fe5;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.twitter:hover {
    background: #0d8bd9;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #005582;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn.copy:hover {
    background: #4b5563;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-large {
    padding: 16px 24px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
}

/* Footer Styles */
.footer {
    background: #1f2937;
    color: white;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #d1d5db;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.social-links {
    gap: 12px;
}

.social-link {
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #374151;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 24px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-bottom p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .course-info {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .course-image {
        order: -1;
    }
    
    .course-title {
        font-size: 2rem;
    }
    
    .study-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 16px;
    }
    
    .breadcrumb-list {
        padding: 0 16px;
    }
    
    .course-header {
        padding: 32px 0;
    }
    
    .course-info {
        padding: 0 16px;
    }
    
    .course-title {
        font-size: 1.75rem;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .course-content {
        padding: 32px 16px;
    }
    
    .content-tabs {
        overflow-x: auto;
    }
    
    .tab-button {
        padding: 12px 16px;
        white-space: nowrap;
    }
    
    .lesson-item,
    .assessment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .assessment-actions {
        align-self: stretch;
    }
    
    .assessment-actions .btn {
        width: 100%;
    }
    
    .social-sharing {
        justify-content: center;
    }
    
    .social-sharing-section {
        padding: 24px 16px;
    }
    
    .footer-content {
        padding: 32px 16px;
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }
    
    .course-title {
        font-size: 1.5rem;
    }
    
    .btn-large {
        padding: 12px 16px;
        font-size: 0.875rem;
    }
    
    .user-btn span {
        display: none;
    }
    
    .nav-menu {
        gap: 8px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Progress Page Styles */
.progress-main {
    min-height: calc(100vh - 120px);
    background: #f8fafc;
}

.progress-header {
    background: linear-gradient(135deg, #2563EB 0%, #2563EB 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-label {
    font-size: 0.875rem;
    color: #e4e7eb;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.course-progress-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.course-image {
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.course-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.course-category {
    font-size: 0.875rem;
    color: #6b7280;
}

.progress-bar-container {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.course-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #6b7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.test-results h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.test-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.test-result:last-child {
    border-bottom: none;
}

.test-name {
    font-size: 0.875rem;
    color: #374151;
}

.test-score {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.test-score.passed {
    background: #dcfce7;
    color: #166534;
}

.test-score.failed {
    background: #fee2e2;
    color: #dc2626;
}

/* Test Page Styles */
.test-main {
    min-height: 100vh;
    background: #f8fafc;
}

.test-instructions {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.instruction-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.test-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.course-name {
    color: #6b7280;
    font-size: 1.125rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.info-item i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.info-item strong {
    display: block;
    font-weight: 600;
    color: #1f2937;
}

.info-item span {
    color: #6b7280;
    font-size: 0.875rem;
}

.test-description,
.test-rules,
.previous-attempts {
    margin-bottom: 32px;
}

.test-description h3,
.test-rules h3,
.previous-attempts h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.test-rules ul {
    list-style: none;
    padding: 0;
}

.test-rules li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #374151;
}

.test-rules li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3b82f6;
    font-weight: bold;
}

.attempts-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
}

.attempt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.attempt-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.attempt-score {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.test-actions {
    text-align: center;
    margin-top: 32px;
}

.test-actions .btn {
    margin: 8px;
}

.no-attempts {
    color: #dc2626;
    font-weight: 500;
    text-align: center;
    padding: 16px;
    background: #fee2e2;
    border-radius: 8px;
}

/* Test Interface */
.test-interface {
    display: none;
    min-height: 100vh;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 300px;
}

.test-header-bar {
    grid-column: 1 / -1;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #dc2626;
}

.test-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.question-container {
    flex: 1;
}

.question-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 24px;
    line-height: 1.6;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: #3b82f6;
}

.option input[type="radio"] {
    display: none;
}

.option input[type="radio"]:checked + label {
    background: #eff6ff;
    border-color: #3b82f6;
}

.option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-radius: 6px;
}

.option-letter {
    background: #f3f4f6;
    color: #374151;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.option input[type="radio"]:checked + label .option-letter {
    background: #3b82f6;
    color: white;
}

.option-text {
    flex: 1;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.test-sidebar {
    background: white;
    border-left: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.question-grid h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.grid-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.grid-item {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-item:hover {
    border-color: #3b82f6;
}

.grid-item.current {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.grid-item.answered {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}

.btn-full {
    width: 100%;
}

@media (max-width: 1024px) {
    .test-interface {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .test-sidebar {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        grid-row: 3;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .instruction-card {
        padding: 24px;
    }
    
    .test-header h1 {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .test-content {
        padding: 16px;
    }
    
    .question-card {
        padding: 20px;
    }
    
    .grid-items {
        grid-template-columns: repeat(4, 1fr);
    }
}




/* CV Analysis Promotion Section */
.cv-analysis-promo {
    padding: 60px 0;
    background: linear-gradient(135deg, #2563EB 0%, #2563EB 100%);
    position: relative;
    overflow: hidden;
}

.cv-analysis-promo::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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cv-analysis-promo .container {
    position: relative;
    z-index: 2;
}

/* Guest User Promotion */
.cv-promo-guest {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    color: white;
}

.cv-promo-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.cv-promo-icon i {
    font-size: 2.5rem;
    color: white;
}

.cv-promo-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cv-promo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cv-promo-text p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.cv-promo-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.feature-item i {
    color: #48bb78;
    font-size: 1.1rem;
}

.btn-cv-primary {
    background: linear-gradient(45deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cv-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(72, 187, 120, 0.4);
    color: white;
    text-decoration: none;
}

.btn-cv-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-cv-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.cv-promo-note {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-promo-note i {
    color: #feca57;
}

/* CV Preview Mockup */
.cv-preview-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.cv-preview-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.cv-preview-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cv-preview-dots {
    display: flex;
    gap: 6px;
}

.cv-preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.cv-preview-dots span:nth-child(1) { background: #ff5f57; }
.cv-preview-dots span:nth-child(2) { background: #ffbd2e; }
.cv-preview-dots span:nth-child(3) { background: #28ca42; }

.cv-preview-title {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.cv-preview-content {
    padding: 30px;
}

.cv-score-preview {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.score-circle-preview {
    text-align: center;
}

.score-circle-preview .score-value {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 8px;
}

.score-circle-preview.overall .score-value {
    background: linear-gradient(45deg, #2563EB, #2563EB);
}

.score-circle-preview.ats .score-value {
    background: linear-gradient(45deg, #48bb78, #38a169);
}

.score-circle-preview .score-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.cv-suggestions-preview {
    space-y: 10px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
    color: #495057;
}

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

/* Logged-in User Section */
.cv-promo-user {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.cv-promo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.cv-promo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cv-promo-title i {
    color: #2563EB;
    font-size: 1.5rem;
}

.cv-promo-title h2 {
    color: #2d3748;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.cv-user-stats {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cv-latest-analysis {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

.analysis-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.analysis-info h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.analysis-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.analysis-type {
    display: flex;
    gap: 8px;
}

.type-badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-badge.job_targeted {
    background: #fbb6ce;
    color: #97266d;
}

.language-badge {
    background: #bee3f8;
    color: #2a4365;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.analysis-scores {
    display: flex;
    gap: 20px;
}

.score-item {
    text-align: center;
}

.score-circle-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.score-circle-small.overall {
    background: linear-gradient(45deg, #2563EB, #2563EB);
}

.score-circle-small.ats {
    background: linear-gradient(45deg, #48bb78, #38a169);
}

.score-circle-small .score-value {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.score-item .score-label {
    font-size: 0.8rem;
    color: #718096;
}

.analysis-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.cv-user-summary {
    space-y: 25px;
}

.summary-stats {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
}

.stat-item {
    text-align: center;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2563EB;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 4px;
}

.improvement-tip {
    background: linear-gradient(135deg, #fef5e7, #fed7aa);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.tip-icon {
    background: #f6ad55;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tip-content h4 {
    color: #744210;
    margin-bottom: 8px;
    font-size: 1rem;
}

.tip-content p {
    color: #975a16;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.cv-no-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.no-analysis-content {
    text-align: center;
}

.no-analysis-icon {
    background: linear-gradient(45deg, #2563EB, #2563EB);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.no-analysis-content h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.no-analysis-content p {
    color: #718096;
    margin-bottom: 25px;
    line-height: 1.5;
}

.analysis-benefits h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.analysis-benefits ul {
    list-style: none;
    padding: 0;
}

.analysis-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #4a5568;
}

.text-success {
    color: #48bb78 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-analysis-promo {
        padding: 40px 0;
    }
    
    .cv-promo-guest {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cv-promo-text h2 {
        font-size: 2rem;
    }
    
    .cv-promo-features {
        grid-template-columns: 1fr;
    }
    
    .cv-preview-mockup {
        transform: none;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cv-user-stats {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .analysis-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .analysis-scores {
        justify-content: center;
    }
    
    .cv-no-analysis {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cv-promo-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}