/* ==========================================================
   RAJ MOCK TEST V2.0
   ADD TEST
========================================================== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --purple: #7c3aed;

    --bg: #f5f7fb;

    --text: #172033;

    --muted: #7b8495;

    --border: #e7eaf0;

    --white: #ffffff;

    --danger: #dc2626;

    --success: #16a34a;
}


body {

    font-family: "Poppins", sans-serif;

    background: var(--bg);

    color: var(--text);

    padding-bottom: 60px;
}



/* ==========================================================
   TOPBAR
========================================================== */

.topbar {

    height: 76px;

    background: white;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 6%;

    position: sticky;

    top: 0;

    z-index: 100;
}


.brand {

    display: flex;

    align-items: center;

    gap: 10px;
}


.brand-logo {

    width: 43px;

    height: 43px;

    background: #eff6ff;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;
}


.brand h2 {

    font-size: 18px;

    line-height: 18px;
}


.brand span {

    font-size: 9px;

    color: var(--primary);

    font-weight: 700;

    letter-spacing: 1.5px;
}


.back-btn {

    border: none;

    background: #eff6ff;

    color: var(--primary);

    padding: 10px 15px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.back-btn:hover {

    background: #dbeafe;
}



/* ==========================================================
   CONTAINER
========================================================== */

.container {

    width: min(1100px, 92%);

    margin: auto;
}



/* ==========================================================
   PAGE HEADER
========================================================== */

.page-header {

    padding: 35px 0 25px;
}


.eyebrow {

    font-size: 10px;

    font-weight: 700;

    color: var(--primary);

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}


.page-header h1 {

    font-size: 28px;
}


.page-header p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}



/* ==========================================================
   CARD
========================================================== */

.card {

    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;

    padding: 25px;

    margin-bottom: 20px;

    box-shadow:
        0 6px 20px rgba(20, 30, 60, .04);
}


.card-header {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 22px;
}


.card-icon {

    width: 45px;

    height: 45px;

    border-radius: 12px;

    background: #eff6ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;
}


.card-header h2 {

    font-size: 17px;
}


.card-header p {

    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}



/* ==========================================================
   FORM
========================================================== */

.form-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group.full {

    grid-column: 1 / -1;
}


.form-group label {

    font-size: 11px;

    font-weight: 600;

    color: #374151;
}


.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border: 1px solid var(--border);

    outline: none;

    background: #fff;

    border-radius: 10px;

    padding: 12px 13px;

    font-family: inherit;

    font-size: 12px;

    color: var(--text);

    transition: .2s;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}


.form-group select:disabled {

    background: #f3f4f6;

    cursor: not-allowed;
}


.form-group textarea {

    resize: vertical;

    min-height: 100px;
}



/* ==========================================================
   MODE TABS
========================================================== */

.mode-tabs {

    display: flex;

    gap: 8px;

    margin-bottom: 20px;

    padding: 5px;

    background: #f5f7fb;

    border-radius: 12px;

    width: fit-content;
}


.mode-tab {

    border: none;

    background: transparent;

    padding: 10px 15px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    color: var(--muted);

    cursor: pointer;
}


.mode-tab.active {

    background: white;

    color: var(--primary);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .05);
}



/* ==========================================================
   QUESTION AREA
========================================================== */

.question-area {

    display: block;
}


.question-area.hidden {

    display: none;
}


.options-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;

    margin-top: 18px;
}


.correct-group {

    max-width: 300px;

    margin-top: 18px;
}


.primary-btn {

    margin-top: 20px;

    border: none;

    background: var(--primary);

    color: white;

    padding: 11px 18px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;
}


.primary-btn:hover {

    background: var(--primary-dark);
}



/* ==========================================================
   BULK
========================================================== */

.bulk-info {

    background: #eff6ff;

    border: 1px solid #dbeafe;

    border-radius: 12px;

    padding: 15px;

    margin-bottom: 15px;
}


.bulk-info strong {

    font-size: 12px;

    color: var(--primary);
}


.bulk-info p {

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}


.bulk-textarea {

    width: 100%;

    min-height: 300px;

    resize: vertical;

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 15px;

    outline: none;

    font-family: monospace;

    font-size: 12px;

    line-height: 1.7;
}


.bulk-textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}


.secondary-btn {

    margin-top: 15px;

    border: none;

    background: #eef2ff;

    color: var(--primary);

    padding: 11px 18px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;
}



/* ==========================================================
   QUESTION LIST
========================================================== */

.question-list {

    display: flex;

    flex-direction: column;

    gap: 12px;
}


.empty-questions {

    border: 1px dashed #d8dce5;

    border-radius: 14px;

    padding: 40px 20px;

    text-align: center;
}


.empty-questions > div {

    font-size: 35px;

    margin-bottom: 8px;
}


.empty-questions h3 {

    font-size: 14px;
}


.empty-questions p {

    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
}



/* QUESTION ITEM */

.question-item {

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 17px;

    background: #fff;
}


.question-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;
}


.question-number {

    min-width: 32px;

    height: 32px;

    border-radius: 9px;

    background: #eff6ff;

    color: var(--primary);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 700;
}


.question-text {

    flex: 1;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.6;
}


.delete-question {

    border: none;

    background: #fee2e2;

    color: var(--danger);

    width: 32px;

    height: 32px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;
}


.question-options {

    margin-top: 12px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 8px;
}


.question-option {

    background: #f8fafc;

    border: 1px solid #edf0f5;

    padding: 9px 10px;

    border-radius: 8px;

    font-size: 10px;
}


.question-option.correct {

    background: #ecfdf5;

    border-color: #bbf7d0;

    color: #166534;

    font-weight: 600;
}


.question-count {

    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid var(--border);

    text-align: right;

    color: var(--muted);

    font-size: 10px;

    font-weight: 600;
}



/* ==========================================================
   SAVE
========================================================== */

.save-section {

    display: flex;

    justify-content: flex-end;

    margin-top: 10px;
}


.save-btn {

    border: none;

    background: #16a34a;

    color: white;

    padding: 13px 25px;

    border-radius: 11px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(22, 163, 74, .18);
}


.save-btn:hover {

    background: #15803d;
}


.save-btn:disabled {

    opacity: .6;

    cursor: not-allowed;
}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .topbar {

        padding: 0 4%;

    }


    .brand h2 {

        font-size: 15px;

    }


    .back-btn {

        padding: 8px 10px;

        font-size: 10px;

    }


    .container {

        width: 94%;

    }


    .page-header {

        padding-top: 25px;

    }


    .page-header h1 {

        font-size: 23px;

    }


    .card {

        padding: 18px;

        border-radius: 15px;

    }


    .form-grid {

        grid-template-columns: 1fr;

    }


    .form-group.full {

        grid-column: auto;

    }


    .options-grid {

        grid-template-columns: 1fr;

    }


    .question-options {

        grid-template-columns: 1fr;

    }


    .mode-tabs {

        width: 100%;

    }


    .mode-tab {

        flex: 1;

        padding: 9px 5px;

    }


    .save-section {

        justify-content: stretch;

    }


    .save-btn {

        width: 100%;

    }

}