/* Security Training Platform - Styles */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 1.125rem;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link-admin {
    background: var(--gray-100);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

/* Main Content */
.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.page-subtitle {
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Features */
.features {
    padding: 4rem 1rem;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Lesson Grid */
.lessons-preview {
    padding: 4rem 1rem;
}

.lesson-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.lesson-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.lesson-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.lesson-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-info {
    flex: 1;
}

.lesson-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.lesson-info p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.lesson-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

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

.stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Forms */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group-btn {
    flex: 0;
    min-width: auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

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

.form-select-small {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form-small {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

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

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

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
}

.table tr:hover {
    background: var(--gray-50);
}

.student-name {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.student-name:hover {
    text-decoration: underline;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Progress */
.progress-mini {
    width: 60px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.progress-bar-mini {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
}

.progress-title {
    font-weight: 500;
}

.progress-count {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.progress-bar-container {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 0.3s;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.action-icon {
    font-size: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-error {
    background: var(--danger-light);
    color: #991b1b;
}

/* Progress Table */
.progress-table-container {
    overflow-x: auto;
}

.progress-table th.sticky-col,
.progress-table td.sticky-col {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
}

.progress-table th.sticky-col {
    background: var(--gray-50);
}

.lesson-col {
    text-align: center;
    min-width: 70px;
}

.lesson-cell {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-complete {
    background: var(--success-light);
    color: #065f46;
}

.status-started {
    background: var(--warning-light);
    color: #92400e;
}

.status-pending {
    color: var(--gray-400);
}

.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

.score-good {
    background: var(--success-light);
    color: #065f46;
}

.score-ok {
    background: var(--warning-light);
    color: #92400e;
}

.score-low {
    background: var(--danger-light);
    color: #991b1b;
}

.legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Student Detail */
.lesson-progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lesson-progress-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--gray-300);
}

.lesson-progress-item.completed {
    border-left-color: var(--success);
}

.lesson-progress-item.started {
    border-left-color: var(--warning);
}

.lesson-progress-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.lesson-progress-item.completed .lesson-progress-number {
    background: var(--success);
}

.lesson-progress-info {
    flex: 1;
}

.lesson-progress-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.lesson-progress-info p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.lesson-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.meta-success {
    color: var(--success);
}

.meta-warning {
    color: var(--warning);
}

.meta-muted {
    color: var(--gray-400);
}

.lesson-progress-actions {
    display: flex;
    align-items: center;
}

/* Lesson Page */
.lesson-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.lesson-header {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.lesson-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.lesson-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lesson-subtitle {
    opacity: 0.9;
}

.completion-banner {
    background: var(--success-light);
    color: #065f46;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.completion-icon {
    font-size: 1.25rem;
}

.lesson-content {
    background: white;
    padding: 2rem;
}

.lesson-body {
    font-size: 1rem;
    line-height: 1.8;
}

.lesson-body h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--gray-900);
}

.lesson-body p {
    margin-bottom: 1rem;
}

.lesson-body ul, .lesson-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.lesson-body li {
    margin-bottom: 0.5rem;
}

/* Email Preview Box */
.email-preview {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    overflow: hidden;
}

.email-header {
    background: var(--gray-100);
    padding: 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
}

.email-body {
    padding: 1rem;
}

/* Red Flags List */
.red-flags {
    list-style: none;
    padding: 0;
}

.red-flags li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--danger-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
}

/* Takeaways */
.takeaways {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.takeaway {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--success-light);
    border-radius: var(--radius);
}

.takeaway-icon {
    width: 32px;
    height: 32px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.takeaway strong {
    display: block;
    margin-bottom: 0.25rem;
}

.takeaway p {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* Other Lesson Styling */
.password-times {
    margin: 1.5rem 0;
}

.password-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
}

.password-row.bad {
    background: var(--danger-light);
}

.password-row.medium {
    background: var(--warning-light);
}

.password-row.good {
    background: var(--success-light);
}

.password {
    font-family: monospace;
}

.example-box {
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.example-box.good {
    background: var(--success-light);
    border-left: 4px solid var(--success);
}

.dialogue {
    margin: 1.5rem 0;
}

.dialogue > div {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
}

.caller {
    background: var(--gray-100);
}

.speaker {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.tactics-grid, .malware-types, .attack-types, .compromise-methods, .leak-sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tactic, .malware-type, .attack-type, .method, .leak {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.tactic h4, .malware-type h4, .attack-type h4, .method h4, .leak h4 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.attack-flow, .flow-step {
    margin: 1.5rem 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.ransom-note {
    background: #1a1a1a;
    color: #f00;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    text-align: center;
    font-family: monospace;
}

.ransom-note h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.phone-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.data-category {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    text-align: center;
}

.data-category h4 {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.data-category p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0;
}

/* Quiz Section */
.quiz-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.quiz-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quiz-intro {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.quiz-question {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.question-text {
    font-weight: 600;
    margin-bottom: 1rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: var(--primary);
}

.option-label input[type="radio"] {
    accent-color: var(--primary);
}

.option-text {
    flex: 1;
}

.quiz-submit {
    margin-top: 2rem;
    text-align: center;
}

.email-required {
    margin-bottom: 1rem;
}

.email-required label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.email-required .form-input {
    max-width: 300px;
    margin: 0 auto;
}

/* Lesson Navigation */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid var(--gray-200);
}

.lesson-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s;
}

.lesson-nav-btn:hover {
    background: var(--gray-200);
}

.lesson-nav-btn.all {
    background: var(--primary);
    color: white;
}

.lesson-nav-btn.all:hover {
    background: var(--primary-dark);
}

/* Quiz Results */
.results-header {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.results-great {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.results-ok {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
}

.results-needs-work {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
}

.results-score {
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.score-percent {
    font-size: 1.5rem;
    opacity: 0.9;
}

.results-content {
    background: white;
    padding: 2rem;
}

.results-content h2 {
    margin-bottom: 1.5rem;
}

.result-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid;
}

.result-correct {
    background: var(--success-light);
    border-left-color: var(--success);
}

.result-incorrect {
    background: var(--danger-light);
    border-left-color: var(--danger);
}

.result-header {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-icon {
    font-size: 1.25rem;
}

.result-correct .result-icon {
    color: var(--success);
}

.result-incorrect .result-icon {
    color: var(--danger);
}

.result-question {
    font-weight: 600;
}

.result-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius);
}

.option-correct {
    background: var(--success-light);
    font-weight: 500;
}

.option-wrong {
    background: var(--danger-light);
    text-decoration: line-through;
}

.option-marker {
    font-size: 0.875rem;
}

.result-explanation {
    font-size: 0.875rem;
    color: var(--gray-700);
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.results-nav {
    padding: 2rem;
    background: white;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Lessons List */
.lessons-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.lesson-list-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.lesson-list-item.completed {
    border-left: 4px solid var(--success);
}

.lesson-list-item.started {
    border-left: 4px solid var(--warning);
}

.lesson-list-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.lesson-list-item.completed .lesson-list-number {
    background: var(--success);
}

.lesson-check {
    font-size: 1.25rem;
}

.lesson-list-content {
    flex: 1;
}

.lesson-list-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.lesson-list-content p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.lesson-score {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 500;
}

.lesson-status {
    font-size: 0.75rem;
    color: var(--warning);
    font-weight: 500;
}

.lesson-list-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
}

.progress-overview {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-overview-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-name {
    font-weight: 600;
}

.progress-status {
    color: var(--gray-500);
}

.progress-bar-large {
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

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

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

.btn-block {
    width: 100%;
}

.back-link {
    display: block;
    text-align: center;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
}

.back-link:hover {
    color: var(--primary);
}

/* Utilities */
.text-muted {
    color: var(--gray-500);
}

.empty-state {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
}

.empty-state a {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .lesson-header h1 {
        font-size: 1.5rem;
    }
    
    .lesson-content {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .lesson-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-nav {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
