﻿/* DEFAULTS
----------------------------------------------------------*/

body   
{
    background: #b6b7bc;
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
}

a:link, a:visited
{
    color:navy;
    text-decoration: none;
}

a:hover
{
    color:red;
}

a:active
{
    color:red;
}

p
{
    margin-bottom: 10px;
    line-height: 1.6em;
}

/* HEADINGS   
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6
{
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

h1
{
    font-size: 1.6em;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

h2
{
    font-size: 1.5em;
    font-weight: 600;
}

h3
{
    font-size: 1.2em;
}

h4
{
    font-size: 1.1em;
}

h5, h6
{
    font-size: 1em;
}

.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2
{
    margin-top: 0px;
}

/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

.page
{
    width: 960px;
    background-color: #fff;
    margin: 20px auto 0px auto;
    border: 1px solid #496077;
}

.header
{
    position: relative;
    margin: 0px;
    padding: 0px;
    background: #4b6c9e;
    width: 100%;
}

.header h1
{
    font-weight: 700;
    margin: 0px;
    padding: 0px 0px 0px 20px;
    color: #f9f9f9;
    border: none;
    line-height: 2em;
    font-size: 2em;
}

.main
{
    padding: 0px 12px;
    margin: 12px 8px 8px 8px;
    min-height: 420px;
}

.leftCol
{
    padding: 6px 0px;
    margin: 12px 8px 8px 8px;
    width: 200px;
    min-height: 200px;
}

.footer
{
    color : #4e5766;
    background-color:White;
    padding: 8px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
    height: 262px;
    width: 961px;
}

/* TAB MENU   
----------------------------------------------------------*/

div.hideSkiplink
{
    background-color:#CC3300;
    width:100%;
    font-family:Times New Roman;
    font-size:large;
    font-weight:bold;
    color: White;
    height: 30px;
}

div.menu
{
    padding: 4px 0px 4px 8px;
}

div.menu ul
{
    list-style: none;
    margin: 0px;
    padding: 0px;
    width: auto;
}

div.menu ul li a, div.menu ul li a:visited
{
    background-color: #CC3300;
    border: 0px;
    color: White;
    display: block;
    line-height: 1.35em;
    padding: 4px 20px;
    text-decoration: none;
    white-space: nowrap;
}

div.menu ul li a:hover
{
    background-color:#CC3300;
    color: White;
    text-decoration: none;
}

div.menu ul li a:active
{
    background-color: #CC3300;
    color:White;
    text-decoration: none;
}

/* FORM ELEMENTS   
----------------------------------------------------------*/

fieldset
{
    margin: 1em 0px;
    padding: 1em;
    border: 1px solid #ccc;
}

fieldset p 
{
    margin: 2px 12px 10px 10px;
}

fieldset.login label, fieldset.register label, fieldset.changePassword label
{
    display: block;
}

fieldset label.inline 
{
    display: inline;
}

legend 
{
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input.textEntry 
{
    width: 320px;
    border: 1px solid #ccc;
}

input.passwordEntry 
{
    width: 320px;
    border: 1px solid #ccc;
}

div.accountInfo
{
    width: 42%;
}

/* MISC  
----------------------------------------------------------*/

.clear
{
    clear: both;
}

.title
{
    display: block;
    float: left;
    text-align: left;
    width: 953px;
    height: 257px;
    margin-right: 0px;
}

.loginDisplay
{
    font-size: 1.1em;
    display: block;
    text-align: right;
    padding: 10px;
    color: White;
}

.loginDisplay a:link,
.loginDisplay a:visited,
.loginDisplay a:hover
{
    color: white;
}

.failureNotification
{
    font-size: 1.2em;
    color: Red;
}

.bold
{
    font-weight: bold;
}

.submitButton
{
    text-align: right;
    padding-right: 10px;
}

/* Cho phép page co giãn trên mobile */
@media (max-width: 768px) {
    .page {
        width: 100% !important;
        border: none;
        margin: 0;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ====== SPACING TUNE-UP ====== */

.main { 
    margin: 8px 0 !important;
    padding: 0 8px !important;
}

.main p,
.page p {
    margin: 6px 0 !important;
    line-height: 1.5 !important;
}

.main img,
.page img {
    display: block !important;
    margin: 0 auto !important;
}

.main p img,
.page p img { 
    display: block !important;
}

.main p:empty,
.page p:empty { 
    display: none !important;
}

.banner, .section, .panel, .card, .gallery, .row, .content-block {
    margin-bottom: 12px !important;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }

@media (max-width: 768px) {
    .main { margin: 6px 0 !important; }

    .banner, .section, .panel, .card, .gallery, .row, .content-block {
        margin-bottom: 10px !important;
    }
}

.slider {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.slider img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}


/* ==========================================================
   GIAO DIỆN PHIẾU BÀI TẬP DÙNG CHUNG
   Dùng cho các trang bài tập Toán, Tin học và các môn học khác
   ========================================================== */

.quiz-week1{
        width:100%;
        max-width:1200px;
        box-sizing:border-box;
        margin:25px auto 35px;
        padding:26px;
        background:#fff;
        border-radius:20px;
        border-top:10px solid #f44336;
        box-shadow:0 5px 18px rgba(0,0,0,.12);
        font-family:Arial,Helvetica,sans-serif;
        color:#333;
        font-size:22px;
    }

    /*==========================
    TIÊU ĐỀ
    ==========================*/

    .quiz-week1 h1{
        text-align:center;
        color:#d32f2f;
        font-size:28px;
        font-weight:bold;
        line-height:1.35;
        margin:0 0 8px 0;
    }

    .quiz-subtitle{
        text-align:center;
        color:#555;
        font-size:21px;
        font-weight:bold;
        line-height:1.5;
        margin-bottom:22px;
    }

    /*==========================
    PHẦN
    ==========================*/

    .quiz-section{
        margin:23px 0 14px;
        padding:11px 15px;
        background:#f44336;
        color:#fff;
        border-radius:10px;
        font-size:24px;
        font-weight:bold;
        line-height:1.4;
    }

    /*==========================
    CÂU HỎI
    ==========================*/

    .quiz-question{
        margin-bottom:18px;
        padding:16px;
        background:#fffafa;
        border:1px solid #ffcdd2;
        border-radius:14px;
        font-size:22px;
    }

    .quiz-question p{
        margin:0 0 13px;
        font-size:22px;
        font-weight:bold;
        line-height:1.55;
    }

    .quiz-question.correct{
        background:#e8f5e9;
        border-color:#4caf50;
    }

    .quiz-question.wrong{
        background:#ffebee;
        border-color:#f44336;
    }

    /*==========================
    Ô NHẬP
    ==========================*/

    .quiz-input,
    .quiz-input-small{
        border:2px solid #ffcdd2;
        border-radius:8px;
        text-align:center;
        font-size:22px;
        font-weight:bold;
        outline:none;
    }

    .quiz-input{
        width:250px;
        max-width:90%;
        height:50px;
    }

    .quiz-input-small{
        width:85px;
        height:50px;
    }

    .quiz-input:focus,
    .quiz-input-small:focus{
        border-color:#ef5350;
    }

    /*==========================
    ĐÁP ÁN
    ==========================*/

    .quiz-options{
        list-style:none;
        margin:0;
        padding:0;
    }

    .quiz-options li{
        margin:9px 0;
    }

    .quiz-options label{
        display:block;
        padding:12px 16px;
        background:#fff3f3;
        border-radius:10px;
        cursor:pointer;
        font-size:22px;
        line-height:1.55;
    }

    .quiz-options label:hover{
        background:#ffe0e0;
    }

    /*==========================
    HÌNH ẢNH
    ==========================*/

    .picture-box{
        margin:14px 0;
        padding:14px;
        background:#fff;
        border:1px dashed #ef9a9a;
        border-radius:12px;
        text-align:center;
        font-size:22px;
    }

    .emoji-row{
        font-size:42px;
        line-height:1.5;
        letter-spacing:6px;
    }

    /*==========================
    ĐẾM ĐỒ VẬT
    ==========================*/

    .count-grid{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:14px;
        margin-top:14px;
    }

    .count-card{
        padding:14px;
        background:#fff;
        border:1px solid #ffcdd2;
        border-radius:10px;
        text-align:center;
        font-size:22px;
    }

    .count-card .object{
        font-size:39px;
        min-height:56px;
        margin-bottom:9px;
    }

    /*==========================
    KHÁC
    ==========================*/

    .sequence-box{
        margin:14px 0;
        padding:14px;
        background:#fff;
        border:1px dashed #ef9a9a;
        border-radius:10px;
        text-align:center;
        font-size:22px;
        font-weight:bold;
    }

    .circle-row{
        display:flex;
        justify-content:center;
        flex-wrap:wrap;
        gap:11px;
        font-size:39px;
        margin:11px 0;
    }

    .information-note{
        font-size:21px;
        line-height:1.55;
    }

    .situation-box{
        font-size:21px;
        line-height:1.55;
        font-weight:700;
    }

    /*==========================
    THÔNG BÁO
    ==========================*/

    .quiz-feedback{
        display:none;
        margin-top:9px;
        font-size:22px;
        font-weight:bold;
    }

    .feedback-correct{
        color:#2e7d32;
    }

    .feedback-wrong{
        color:#c62828;
    }

    /*==========================
    NÚT
    ==========================*/

    .quiz-button-area{
        margin-top:27px;
        text-align:center;
    }

    .quiz-submit{
        padding:14px 48px;
        border:none;
        border-radius:30px;
        background:#f44336;
        color:#fff;
        font-size:22px;
        font-weight:bold;
        cursor:pointer;
        box-shadow:0 4px 0 #b71c1c;
    }

    .quiz-submit:hover{
        background:#d32f2f;
        transform:translateY(-2px);
    }

    .quiz-submit:disabled{
        background:#aaa;
        box-shadow:none;
        cursor:wait;
    }

    /*==========================
    KẾT QUẢ
    ==========================*/

    #quizResult{
        display:none;
        margin-top:20px;
        padding:16px;
        border-radius:12px;
        text-align:center;
        font-size:22px;
        font-weight:bold;
        line-height:1.65;
    }

    .save-result-message{
        display:block;
        margin-top:9px;
        font-size:21px;
    }

    /*==========================
    ĐIỆN THOẠI
    ==========================*/

    @media(max-width:700px){

        .quiz-week1{
            padding:15px;
            font-size:20px;
        }

        .quiz-week1 h1{
            font-size:26px;
        }

        .quiz-subtitle{
            font-size:19px;
        }

        .quiz-section{
            font-size:21px;
        }

        .quiz-question,
        .quiz-question p,
        .quiz-options label,
        .quiz-input,
        .quiz-input-small,
        .quiz-feedback,
        .information-note,
        .situation-box{
            font-size:19px;
        }

        .count-grid{
            grid-template-columns:repeat(2,1fr);
        }

        .quiz-submit{
            width:100%;
            font-size:20px;
        }
    }

    /* =========================
       KHUNG TRÒ CHƠI WORDWALL
       ========================= */

    .wordwall-box{
        max-width:850px;
        margin:32px auto;
        padding:25px;
        background:#ffffff;
        border-radius:20px;
        border-top:10px solid #2196f3;
        box-shadow:0 5px 18px rgba(0,0,0,0.12);
        font-family:Arial,Helvetica,sans-serif;
    }

    .wordwall-title{
        text-align:center;
        color:#1565c0;
        font-size:27px;
        font-weight:bold;
        margin-bottom:9px;
    }

    .wordwall-subtitle{
        text-align:center;
        color:#555555;
        font-size:21px;
        font-weight:bold;
        line-height:1.5;
        margin-bottom:20px;
    }

    .wordwall-container{
        width:100%;
        overflow:hidden;
        border:2px solid #bbdefb;
        border-radius:14px;
        background:#f5fbff;
        text-align:center;
    }

    .wordwall-container iframe{
        display:block;
        width:100%;
        max-width:100%;
        height:650px;
        border:0;
    }

    @media(max-width:700px){

        .wordwall-box{
            padding:15px;
        }

        .wordwall-title{
            font-size:22px;
        }

        .wordwall-subtitle{
            font-size:18px;
        }

        .wordwall-container iframe{
            height:520px;
        }
    }

            .fill-box{
            margin-top:12px;
            background:#fffef8;
            border:2px dashed #f6b93b;
            border-radius:12px;
            padding:18px;
            line-height:2;
            font-size:22px;
        }

        .fill-select{

            min-width:280px;

            height:48px;

            padding:8px 14px;

            font-size:20px;

            font-weight:600;

            color:#1565c0;

            border:2px solid #4caf50;

            border-radius:10px;

            background:#fff;

            cursor:pointer;

            outline:none;

            transition:.2s;
        }

        .fill-select:hover{

            border-color:#ff9800;

            box-shadow:0 0 8px rgba(255,152,0,.3);
        }

        .fill-select:focus{

            border-color:#2196f3;

            box-shadow:0 0 10px rgba(33,150,243,.4);
        }
            

.quiz-normal-text {
    font-weight: normal;
}

/* Bảo vệ giao diện phiếu bài tập khỏi các quy tắc chung có !important */
.main .quiz-week1 h1,
.page .quiz-week1 h1 {
    font-variant: normal;
    text-transform: none;
}

.main .quiz-question p,
.page .quiz-question p {
    margin: 0 0 13px 0 !important;
    line-height: 1.55 !important;
}

.main .wordwall-box p,
.page .wordwall-box p {
    margin: 0 !important;
}
/*==================================================
NÚT QUAY LẠI
==================================================*/

.quiz-back-link{
    display:inline-block;
    text-decoration:none !important;

    /* Ghi đè màu của quiz-submit */
    background:#1976d2 !important;

    box-shadow:0 5px 0 #0d47a1 !important;

    color:#fff !important;
}

.quiz-back-link:hover{

    background:#1565c0 !important;

    color:#fff !important;

    text-decoration:none !important;
}

.quiz-back-link:active{

    background:#1565c0 !important;

    box-shadow:0 2px 0 #0d47a1 !important;

    color:#fff !important;
}

/* ==========================================================
   CHUẨN HÓA CÂU HỎI KÉO THẢ TRÊN TOÀN BỘ PHIẾU BÀI TẬP
   - Đáp án kéo thả: cùng màu trung tính, không gợi ý đáp án
   - Khung nhận: tự động đổi màu pastel theo vị trí
   - Không cần sửa bất kỳ trang ASPX nào
   ========================================================== */

/* Khung chứa các thẻ trước khi kéo */
.quiz-week1 [id$="_source"] {
    background: #f7f7f7 !important;
    border: 2px dashed #9e9e9e !important;
    border-radius: 12px !important;
}

/* Tất cả đáp án kéo thả dùng cùng một màu trung tính */
.quiz-week1 .drag-item {
    background: #ffffff !important;
    border: 2px solid #707070 !important;
    color: #222222 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10) !important;
    cursor: grab !important;
}

/* Giữ nguyên hình thức riêng của B, I, U và các biểu tượng bên trong */
.quiz-week1 .drag-item * {
    color: inherit;
}

/* Khi đang kéo */
.quiz-week1 .drag-item:active {
    cursor: grabbing !important;
    opacity: 0.82;
}

/* Kiểu chung cho khung nhận */
.quiz-week1 .drop-zone {
    color: #222222 !important;
    border-width: 3px !important;
    border-style: dashed !important;
    border-radius: 12px !important;
    transition: background-color .2s, border-color .2s, box-shadow .2s !important;
}

/* Khung thứ 1: xanh lá nhạt */
.quiz-week1 .drop-zone:nth-of-type(4n+1) {
    background: #e8f5e9 !important;
    border-color: #66bb6a !important;
}

/* Khung thứ 2: xanh dương nhạt */
.quiz-week1 .drop-zone:nth-of-type(4n+2) {
    background: #e3f2fd !important;
    border-color: #42a5f5 !important;
}

/* Khung thứ 3: vàng nhạt */
.quiz-week1 .drop-zone:nth-of-type(4n+3) {
    background: #fff8e1 !important;
    border-color: #ffca28 !important;
}

/* Khung thứ 4: hồng nhạt */
.quiz-week1 .drop-zone:nth-of-type(4n) {
    background: #fce4ec !important;
    border-color: #ec407a !important;
}

/* Trường hợp các khung nằm trong phần tử cha khác nhau:
   dùng thêm nth-child để vẫn tự đổi màu */
.quiz-week1 .drop-zone:nth-child(4n+1) {
    background: #e8f5e9 !important;
    border-color: #66bb6a !important;
}

.quiz-week1 .drop-zone:nth-child(4n+2) {
    background: #e3f2fd !important;
    border-color: #42a5f5 !important;
}

.quiz-week1 .drop-zone:nth-child(4n+3) {
    background: #fff8e1 !important;
    border-color: #ffca28 !important;
}

.quiz-week1 .drop-zone:nth-child(4n) {
    background: #fce4ec !important;
    border-color: #ec407a !important;
}

/* Tiêu đề trong khung nhận */
.quiz-week1 .drop-zone strong {
    color: #333333 !important;
}

/* Hiệu ứng khi đưa chuột qua khung nhận */
.quiz-week1 .drop-zone:hover {
    filter: brightness(0.98);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

/* Đáp án sau khi kéo vào khung vẫn giữ màu trắng trung tính */
.quiz-week1 .drop-zone .drag-item {
    background: #ffffff !important;
    border-color: #707070 !important;
    color: #222222 !important;
}

/* Câu sắp xếp thứ tự cũng không dùng màu để gợi ý */
.quiz-week1 .sort-item {
    background: #ffffff !important;
    border: 2px solid #707070 !important;
    color: #222222 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* Khung chứa câu sắp xếp */
.quiz-week1 [id$="_sort"] {
    background: #f7f7f7 !important;
    border: 2px dashed #9e9e9e !important;
    border-radius: 12px !important;
}

/* Tối ưu trên điện thoại */
@media (max-width: 700px) {
    .quiz-week1 .drop-zone {
        min-width: 0 !important;
    }

    .quiz-week1 .drag-item {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================
   HIỂN THỊ 10 ĐIỂM TUYỆT ĐỐI
   Áp dụng chung cho toàn bộ bài trắc nghiệm
   ========================================================== */

.perfect-score-box {
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    padding: 30px 20px;
    text-align: center;
    border: 4px solid #ffc107;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #fff9c4 0%,
            #fff3e0 45%,
            #e8f5e9 100%
        );
    color: #b45309;
    box-shadow:
        0 10px 30px rgba(255, 152, 0, 0.25),
        inset 0 0 25px rgba(255, 255, 255, 0.8);
    animation: perfectScoreAppear 0.65s ease-out;
}

.perfect-score-icons {
    font-size: 46px;
    line-height: 1.2;
    animation: perfectScoreBounce 1.3s infinite;
}

.perfect-score-title {
    margin: 10px 0 4px;
    font-size: 30px;
    font-weight: 800;
    color: #ef6c00;
    text-transform: uppercase;
}

.perfect-score-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 132px;
    margin: 15px auto;
    border: 8px solid #ffca28;
    border-radius: 50%;
    background: #ffffff;
    color: #e53935;
    font-size: 70px;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 6px 18px rgba(229, 57, 53, 0.22),
        inset 0 0 14px rgba(255, 202, 40, 0.35);
    animation: perfectScorePulse 1.25s infinite;
}

.perfect-score-label {
    margin-top: -5px;
    font-size: 24px;
    font-weight: 800;
    color: #d84315;
}

.perfect-score-message {
    margin: 12px auto 4px;
    max-width: 650px;
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.6;
}

.perfect-score-stars {
    margin-top: 8px;
    font-size: 29px;
    letter-spacing: 5px;
}

.normal-score-box {
    margin-top: 25px;
    padding: 22px;
    text-align: center;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
}

.normal-score-number {
    font-size: 31px;
    font-weight: 900;
}

.save-result-message {
    display: block;
    margin-top: 13px;
    font-size: 16px;
    font-weight: 700;
}

/* Pháo hoa giấy */

.quiz-confetti {
    position: fixed;
    top: -25px;
    z-index: 999999;
    width: 12px;
    height: 18px;
    border-radius: 3px;
    pointer-events: none;
    animation-name: quizConfettiFall;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes perfectScoreAppear {
    from {
        opacity: 0;
        transform: scale(0.78) translateY(25px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes perfectScoreBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes perfectScorePulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes quizConfettiFall {
    0% {
        transform:
            translate3d(0, -20px, 0)
            rotate(0deg);
        opacity: 1;
    }

    100% {
        transform:
            translate3d(
                var(--confetti-drift),
                110vh,
                0
            )
            rotate(var(--confetti-rotate));
        opacity: 0.25;
    }
}

@media (max-width: 700px) {
    .perfect-score-title {
        font-size: 24px;
    }

    .perfect-score-number {
        width: 105px;
        height: 105px;
        font-size: 56px;
    }

    .perfect-score-label {
        font-size: 20px;
    }

    .perfect-score-message {
        font-size: 17px;
    }
}

/* ==========================================================
   ĐỒNG HỒ ĐẾM NGƯỢC DÙNG CHUNG CHO CÁC TRANG BÀI TẬP
   Trang nào cần dùng chỉ cần thêm khối HTML có class quiz-timer-wrap
   ========================================================== */

.quiz-timer-wrap {
    position: sticky;
    top: 10px;
    z-index: 999;
    display: flex;
    max-width: 520px;
    margin: 14px auto 24px;
    padding: 12px 18px;
    border: 2px solid #90caf9;
    border-radius: 16px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #e3f2fd;
    box-shadow: 0 7px 18px rgba(21, 101, 192, 0.18);
    color: #0d47a1;
    font-family: Oswald, "Oswald SemiBold", Arial, sans-serif;
    text-align: center;
}

.quiz-timer-label {
    font-size: 17px;
    font-weight: 700;
}

.quiz-timer-value {
    min-width: 82px;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
}

.quiz-timer-wrap.warning {
    border-color: #ffb74d;
    background: #fff3e0;
    color: #e65100;
    animation: quizTimerPulse 1s infinite;
}

.quiz-timer-wrap.expired {
    border-color: #ef9a9a;
    background: #ffebee;
    color: #c62828;
    animation: none;
}

@keyframes quizTimerPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

@media (max-width: 600px) {
    .quiz-timer-wrap {
        top: 5px;
        margin: 10px 10px 20px;
        padding: 10px 12px;
    }

    .quiz-timer-label {
        font-size: 15px;
    }

    .quiz-timer-value {
        font-size: 24px;
    }
}
/* ==========================================================
   THANH TIẾN TRÌNH LÀM BÀI DÙNG CHUNG
   ========================================================== */

.quiz-progress-auto {
    max-width: 520px;
    margin: 14px auto 24px;
    padding: 12px 18px;
    border: 2px solid #bbdefb;
    border-radius: 16px;
    box-sizing: border-box;
    background: #f5fbff;
    box-shadow: 0 5px 14px rgba(21, 101, 192, 0.12);
}

.quiz-progress-text {
    margin-bottom: 8px;
    color: #1565c0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.quiz-progress-track {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e0e0e0;
}

.quiz-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        #42a5f5 0%,
        #1e88e5 55%,
        #1565c0 100%
    );
    transition: width 0.25s ease;
}

@media (max-width: 600px) {
    .quiz-progress-auto {
        margin: 10px 10px 20px;
        padding: 10px 12px;
    }

    .quiz-progress-text {
        font-size: 16px;
    }
}