/* Custom CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 100px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--box-shadow-lg);
}

/* Stats Section */
.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Course Cards */
.course-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.course-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.course-description {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-name {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.course-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--gray-800);
}

.author-title {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-200);
}

.progress-bar {
    background-color: var(--primary);
    border-radius: 4px;
}

/* Sidebar Styles */
.sidebar {
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar .nav-link {
    color: var(--gray-600) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary);
    color: white !important;
}

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: var(--box-shadow-lg);
}

.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
}

.dashboard-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.dashboard-stat .stat-label {
    color: var(--gray-500);
    font-weight: 500;
}

/* Video Player */
.video-player {
    position: relative;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.video-player video {
    width: 100%;
    height: auto;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    color: white;
}

/* Quiz Styles */
.quiz-question {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.quiz-option {
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    background: var(--gray-200);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.5rem;
}

/* Table Styles */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background-color: var(--gray-100);
    border: none;
    font-weight: 600;
    color: var(--gray-700);
    padding: 1rem;
}

.table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--gray-600);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .course-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .dashboard-stat .stat-number {
        font-size: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .course-content {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Additional Styles for Enhanced Design */

/* Auth Pages */
.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 2rem;
}

.auth-header {
    margin-bottom: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.divider-text {
    background: white;
    padding: 0 1rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* User Type Selection */
.user-type-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-type-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

/* Password Strength Indicator */
.password-strength .progress-bar {
    transition: all 0.3s ease;
}

/* Demo Accounts Alert */
.demo-accounts .alert {
    border: none;
    border-radius: var(--border-radius);
}

/* Course Progress Cards */
.course-progress-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.course-progress-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.course-progress-card .course-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.course-progress-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-progress-card:hover .course-image img {
    transform: scale(1.05);
}

.course-progress-card .course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-progress-card:hover .course-overlay {
    opacity: 1;
}

/* Dashboard Specific Styles */
.dashboard-container {
    background: var(--gray-100);
    min-height: calc(100vh - 80px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.activity-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background: var(--gray-100);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Profile Page Styles */
.profile-container {
    background: var(--gray-100);
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.profile-sidebar {
    position: sticky;
    top: 100px;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 1rem;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-stats {
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
    margin-top: 1rem;
}

.profile-nav .nav-link {
    color: var(--gray-600);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.profile-nav .nav-link:hover,
.profile-nav .nav-link.active {
    background: var(--primary);
    color: white;
}

.profile-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.profile-section {
    min-height: 500px;
}

.settings-group,
.security-group,
.notification-group,
.privacy-group {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.settings-group:last-child,
.security-group:last-child,
.notification-group:last-child,
.privacy-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Quiz Page Styles */
.quiz-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quiz-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.quiz-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Lesson Page Styles */
.lesson-container {
    background: var(--gray-100);
    min-height: calc(100vh - 80px);
}

.video-section {
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    color: white;
}

.lesson-sidebar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.module-section {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.module-section:last-child {
    border-bottom: none;
}

.lesson-item {
    margin-bottom: 0.5rem;
}

.lesson-item.active {
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
}

.lesson-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Course Details Styles */
.course-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.pricing-card .card {
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.course-includes ul {
    margin-bottom: 0;
}

.course-includes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.course-includes li:last-child {
    border-bottom: none;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary);
}

/* Value Cards */
.value-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.value-icon {
    margin-bottom: 1rem;
}

/* Team Cards */
.team-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.team-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Contact Page Styles */
.contact-item {
    padding: 1rem 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
}

/* System Status Indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Quick Actions */
.quick-actions .btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

/* Pending Items */
.pending-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.pending-item:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Session Items */
.session-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Achievement Items */
.achievement-item {
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: var(--gray-100);
}

/* Top Courses */
.top-courses-list .course-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.top-courses-list .course-item:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .video-controls {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .course-card,
    .testimonial-card,
    .dashboard-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}
