﻿
/* ===== Page Shell ===== */
.unit-page-shell {
    max-width: 1300px;
    margin: auto;
    padding-bottom: 60px;
}

/* ===== Header ===== */
.unit-page-header {
    background: #fff;
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unit-page-title {
    font-weight: 600;
    font-size: 1.15rem;
}

/* ===== Section Card ===== */
.unit-section-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
    padding: 24px;
    margin-bottom: 24px;
}

.unit-section-title {
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Sidebar ===== */
.unit-sticky-sidebar {
    position: sticky;
    top: 90px;
}

/* ===== Quiz ===== */
.quiz-wrapper {
    background: linear-gradient(180deg, #fff, #fafafa);
    border-radius: 20px;
    padding: 24px;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.btn-add-question {
    border-radius: 12px;
    font-weight: 500;
    padding: 8px 18px;
}

/* ===== Question Types ===== */
.question-type-panel {
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.question-type-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    min-width: 230px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: all .25s ease;
}

    .question-type-btn i {
        font-size: 1.4rem;
        color: #0d6efd;
    }

    .question-type-btn:hover {
        background: #0d6efd;
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(13,110,253,.25);
    }

        .question-type-btn:hover i {
            color: #fff;
        }

/* ===== Animation ===== */
.unit-fade-slide {
    animation: fadeSlide .35s ease forwards;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
