/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--light-color) !important;
    text-decoration: underline !important;
}

/* Course Cards */
.course-card {
    border-radius: 10px;
    overflow: hidden;
}

.course-card img {
    height: 200px;
    object-fit: cover;
}

.course-card .card-title {
    font-weight: 600;
}

.course-card .badge {
    font-weight: 500;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary-color);
}

/* Chapter List */
.chapter-list {
    list-style: none;
    padding-left: 0;
}

.chapter-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--light-color);
    transition: background-color 0.3s;
}

.chapter-item:hover {
    background-color: #e9ecef;
}

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

.chapter-item.locked {
    opacity: 0.7;
    border-left: 4px solid var(--secondary-color);
}

.chapter-item.current {
    border-left: 4px solid var(--primary-color);
}

/* Video Player */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Quiz Styles */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    border-radius: 10px;
    margin-bottom: 20px;
}

.choice-item {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.choice-item:hover {
    background-color: #f8f9fa;
}

.choice-item.selected {
    background-color: #e7f1ff;
    border-color: var(--primary-color);
}

.choice-item.correct {
    background-color: #d1e7dd;
    border-color: var(--success-color);
}

.choice-item.incorrect {
    background-color: #f8d7da;
    border-color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-card img {
        height: 150px;
    }
    
    .dashboard-header {
        text-align: center;
    }
    
    .dashboard-header .btn {
        margin-top: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}
