:root {
    --primary-color: #0066cc;
    --secondary-color: #5a67d8;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    background-color: var(--dark-color);
    color: white;
}

/* Course Cards */
.course-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

    .course-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

    .course-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }

    .course-card.border-success {
        border-width: 2px !important;
    }

/* Tab styling */
.nav-tabs .nav-link {
    font-weight: 500;
}

    .nav-tabs .nav-link.active {
        background-color: #fff;
        border-color: #dee2e6 #dee2e6 #fff;
    }

    .nav-tabs .nav-link .badge {
        font-size: 0.75rem;
    }

/* Video Player */
.video-player-container {
    position: relative;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

    .video-player-container video {
        width: 100%;
        display: block;
    }

/* Quiz Styles */
.quiz-question {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quiz-option {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quiz-option:hover {
        border-color: var(--primary-color);
        background-color: #f7fafc;
    }

    .quiz-option.selected {
        border-color: var(--primary-color);
        background-color: #ebf8ff;
    }

    .quiz-option.correct {
        border-color: var(--success-color);
        background-color: #f0fff4;
    }

    .quiz-option.incorrect {
        border-color: var(--danger-color);
        background-color: #fff5f5;
    }

/* Progress Bar */
.progress-custom {
    height: 25px;
    border-radius: 15px;
    background-color: #e2e8f0;
}

    .progress-custom .progress-bar {
        border-radius: 15px;
        font-weight: 600;
    }

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0052a3;
        border-color: #0052a3;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    }

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
}

.auth-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .auth-card .card-header {
        background-color: var(--primary-color);
        color: white;
        border-radius: 15px 15px 0 0 !important;
        padding: 1.5rem;
    }

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border-custom {
    width: 4rem;
    height: 4rem;
    border-width: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .course-card img {
        height: 150px;
    }

    .auth-container {
        margin: 1rem;
    }
}

/* SweetAlert Toast Customization */
.swal2-toast {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
}

    .swal2-toast .swal2-title {
        font-size: 0.9rem !important;
    }

/* Delete button style */
.btn-delete {
    transition: all 0.3s ease;
}

    .btn-delete:hover {
        transform: scale(1.05);
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
