html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    width: 100vw;
}

[v-cloak] {
    display: none;
}

:root {
    --main-color: #1E3A8A;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 77px);
}

.header {
    background-color: var(--main-color)!important;
    color: white !important;
}

.header a.nav-link {
    color: white !important;
    transition: color 0.2s ease-in-out;
}

.header a.nav-link:hover {
    color: #cce0ff !important;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #3d7bfd);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-light {
    color: white;
    border-color: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    color: #1E3A8A;
    background-color: white;
    border-color: white;
}

.dropdown-menu {
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.dropdown-item.text-danger:hover {
    background-color: #ffeaea;
}


.form-control {
    background-color: #54545454!important;
    border: none;
}

.form-control:focus {
    box-shadow: none;
    background-color: #e9e9e9;
}

.btn-primary {
    background: linear-gradient(90deg, #0d6efd, #3d7bfd);
    border: none;
}


/* Profile Page Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
}

.nav-tabs .nav-link.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    background-color: transparent;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.form-control-lg,
.form-select-lg {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-control-lg:focus,
.form-select-lg:focus {
    background-color: white !important;
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-check-input {
    width: 2.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
}

.profile-image-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    border: 3px solid white;
}

.profile-image-upload:hover {
    background-color: #0d47a1;
    transform: scale(1.1);
}

.profile-image-upload i {
    font-size: 18px;
}


.student-dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 77px);
    padding-top: 20px;
}
.student-dashboard-inner {
    width: 80%;
    margin: 0px auto;
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.course-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-image-placeholder {
    height: 200px;
}

.course-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: none;
}

.courses-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.course-image-container {
    overflow: hidden;
    height: 200px;
}

.course-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image-container img {
    transform: scale(1.05);
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.sticky-top {
    z-index: 10;
}

@media (max-width: 991px) {
    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Quill Editor Display Styles */
.ql-editor {
    padding: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
}

.ql-editor h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem 0;
}

.ql-editor h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.875rem 0 0.5rem 0;
}

.ql-editor h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem 0;
}

.ql-editor p {
    margin: 0.5rem 0;
}

.ql-editor blockquote {
    border-left: 4px solid #ccc;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #666;
}

.ql-editor pre {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.ql-editor code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.ql-editor pre code {
    background-color: transparent;
    padding: 0;
}

.ql-editor ul,
.ql-editor ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
}

.ql-editor li {
    margin: 0.25rem 0;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
}

.ql-editor a {
    color: #0d6efd;
    text-decoration: none;
}

.ql-editor a:hover {
    text-decoration: underline;
}

.ql-editor strong {
    font-weight: 700;
}

.ql-editor em {
    font-style: italic;
}

.ql-editor u {
    text-decoration: underline;
}

.ql-editor s {
    text-decoration: line-through;
}

.ql-editor table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}

.ql-editor table td,
.ql-editor table th {
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.ql-editor table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

/* Video embeds */
.ql-editor iframe {
    max-width: 100%;
    height: auto;
}

/* Quill snow theme overrides */
.ql-container.ql-snow {
    border: none;
}

.ql-toolbar.ql-snow {
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}
/* ========================================================================
       FOOTER CONTAINER
       ======================================================================== */

    .footer-container {
        background-color: var(--main-color);
        color: white;
        padding: 3rem 0 1rem;
        margin-top: auto;
        font-family: 'Poppins', sans-serif;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* ========================================================================
       FOOTER CONTENT GRID
       ======================================================================== */

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        display: flex;
        flex-direction: column;
    }

    /* ========================================================================
       BRAND SECTION
       ======================================================================== */

    .footer-brand-title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: white;
    }

    .footer-description {
        font-size: 0.95rem;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* ========================================================================
       SOCIAL ICONS
       ======================================================================== */

    .footer-social {
        display: flex;
        gap: 1rem;
    }

    .footer-social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.15);
        color: white;
        border-radius: 50%;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1rem;
    }

    .footer-social-icon:hover {
        background-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-3px);
    }

    /* ========================================================================
       COLUMN TITLES
       ======================================================================== */

    .footer-column-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: white;
        margin-bottom: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* ========================================================================
       LINKS
       ======================================================================== */

    .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        display: inline-block;
    }

    .footer-links a:hover {
        color: #cce0ff;
        padding-left: 4px;
    }

    /* ========================================================================
       CONTACT
       ======================================================================== */

    .footer-contact {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-contact li {
        margin-bottom: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.95rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-contact i {
        color: #cce0ff;
        min-width: 20px;
        margin-top: 2px;
    }

    .footer-contact a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-contact a:hover {
        color: #cce0ff;
    }

    /* ========================================================================
       DIVIDER
       ======================================================================== */

    .footer-divider {
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.2),
            rgba(255, 255, 255, 0)
        );
        margin: 2rem 0;
    }

    /* ========================================================================
       FOOTER BOTTOM
       ======================================================================== */

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-copyright p {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.9rem;
        margin: 0;
    }

    /* ========================================================================
       LEGAL LINKS
       ======================================================================== */

    .footer-legal {
        display: flex;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .footer-legal a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }

    .footer-legal a:hover {
        color: #cce0ff;
    }

    /* ========================================================================
       RESPONSIVE DESIGN
       ======================================================================== */

    @media (max-width: 768px) {
        .footer-container {
            padding: 2rem 0 1rem;
        }

        .footer-content {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .footer-bottom {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }

        .footer-legal {
            justify-content: center;
            gap: 1rem;
        }

        .footer-column-title {
            font-size: 0.9rem;
        }

        .footer-links a,
        .footer-contact li {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 480px) {
        .footer-container {
            padding: 1.5rem 0 0.75rem;
        }

        .footer-brand-title {
            font-size: 1.25rem;
        }

        .footer-description {
            font-size: 0.9rem;
        }

        .footer-social {
            gap: 0.75rem;
        }

        .footer-social-icon {
            width: 36px;
            height: 36px;
            font-size: 0.9rem;
        }

        .footer-divider {
            margin: 1.5rem 0;
        }

        .footer-legal a {
            font-size: 0.85rem;
        }
    }

/* Quiz Result Icons */
.result-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.result-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.result-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

/* Option Cards */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option-card:hover:not(.disabled) {
    border-color: #0d6efd;
    background: #f8f9ff;
    transform: translateX(4px);
}

.option-card.selected {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff 0%, #f0f7ff 100%);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.option-card.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.option-letter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 16px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.option-card.selected .option-letter {
    background: #0d6efd;
    color: white;
}

.option-text {
    flex-grow: 1;
    font-size: 16px;
}

.option-status {
    margin-left: 12px;
}

/* True/False Buttons */
.tf-container {
    display: flex;
    gap: 16px;
}

.tf-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tf-btn i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tf-btn span {
    font-size: 1.1rem;
    font-weight: 600;
}

.tf-btn:hover:not(.disabled) {
    transform: translateY(-2px);
}

.tf-true:hover:not(.disabled),
.tf-true.selected {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.tf-false:hover:not(.disabled),
.tf-false.selected {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.tf-btn.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Question Dots */
.question-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.question-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.question-dot:hover {
    border-color: #0d6efd;
}

.question-dot.answered {
    background: #0d6efd;
    border-color: #0d6efd;
}

.question-dot.active {
    width: 20px;
    border-radius: 6px;
    border-color: #0d6efd;
    background: #0d6efd;
}

/* Code Editor */
.code-editor-container {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background: #2d3748;
    color: #a0aec0;
    padding: 8px 16px;
    font-size: 14px;
}

.code-editor {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    border: none;
    border-radius: 0;
    background: #1e1e1e;
    color: #d4d4d4;
}

.code-editor:focus {
    box-shadow: none;
    background: #1e1e1e;
}

/* Fill in the Blank */
.fill-blank-input {
    font-size: 18px;
    border: 2px dashed #0d6efd;
    border-radius: 12px;
    text-align: center;
}

.fill-blank-input:focus {
    border-style: solid;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* Quiz Review */
.quiz-review .card {
    transition: all 0.2s ease;
}

.quiz-review .card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-container {
    animation: slideIn 0.3s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.option-card.selected {
    animation: pulse 0.3s ease;
}


