/* ==========================================================
   RAJ MOCK TEST V2.0
   CREATE EXAM + CATEGORY
========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: "Poppins", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh;
}


/* ==========================================================
   TOPBAR
========================================================== */

.topbar {
    width: 100%;
    min-height: 72px;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 5%;

    position: sticky;
    top: 0;
    z-index: 100;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-logo {
    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: #eef2ff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
}


.brand h2 {
    font-size: 18px;
    font-weight: 700;
}


.brand span {
    font-size: 10px;
    font-weight: 600;

    color: #6366f1;

    letter-spacing: 1px;
}


.back-btn {
    border: none;

    background: #f3f4f6;

    color: #374151;

    padding: 10px 16px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.back-btn:hover {
    background: #e5e7eb;
}



/* ==========================================================
   CONTAINER
========================================================== */

.container {
    width: min(1100px, 92%);

    margin: 35px auto 60px;
}



/* ==========================================================
   PAGE HEADER
========================================================== */

.page-header {
    margin-bottom: 25px;
}


.eyebrow {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #6366f1;

    margin-bottom: 5px;
}


.page-header h1 {
    font-size: 30px;

    font-weight: 700;

    margin-bottom: 5px;
}


.page-header p {
    color: #6b7280;

    font-size: 14px;
}



/* ==========================================================
   CARD
========================================================== */

.card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    padding: 25px;

    margin-bottom: 24px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);
}


.card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}


.card-icon {
    width: 48px;
    height: 48px;

    background: #eef2ff;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;
}


.card-header h2 {
    font-size: 18px;

    margin-bottom: 3px;
}


.card-header p {
    font-size: 12px;

    color: #6b7280;
}



/* ==========================================================
   FORM
========================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group.full {
    grid-column: 1 / -1;
}


.form-group label {
    font-size: 13px;

    font-weight: 600;

    color: #374151;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border: 1px solid #d1d5db;

    background: #ffffff;

    border-radius: 10px;

    padding: 12px 13px;

    font-family: inherit;

    font-size: 13px;

    color: #111827;

    outline: none;

    transition: 0.2s;
}


.form-group textarea {
    resize: vertical;

    min-height: 90px;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.10);
}


.form-group select:disabled {
    background: #f3f4f6;

    cursor: not-allowed;
}



/* ==========================================================
   BUTTONS
========================================================== */

.action-row {
    margin-top: 24px;

    display: flex;

    justify-content: flex-end;
}


.primary-btn,
.secondary-btn {
    border: none;

    border-radius: 10px;

    padding: 12px 20px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.primary-btn {
    background: #4f46e5;

    color: #ffffff;
}


.primary-btn:hover {
    background: #4338ca;
}


.secondary-btn {
    background: #111827;

    color: #ffffff;
}


.secondary-btn:hover {
    background: #000000;
}


.primary-btn:disabled,
.secondary-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}



/* ==========================================================
   MESSAGE
========================================================== */

.message {
    margin-top: 15px;

    font-size: 13px;

    font-weight: 600;

    display: none;

    padding: 11px 14px;

    border-radius: 9px;
}


.message.success {
    display: block;

    background: #ecfdf5;

    color: #047857;

    border: 1px solid #a7f3d0;
}


.message.error {
    display: block;

    background: #fef2f2;

    color: #b91c1c;

    border: 1px solid #fecaca;
}



/* ==========================================================
   EXAM LIST
========================================================== */

.exam-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}


.exam-item {
    border: 1px solid #e5e7eb;

    border-radius: 14px;

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 13px;

    background: #fafafa;
}


.exam-item-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    border-radius: 11px;

    background: #eef2ff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 22px;
}


.exam-item-content {
    flex: 1;

    min-width: 0;
}


.exam-item-content h3 {
    font-size: 14px;

    margin-bottom: 3px;
}


.exam-item-content p {
    font-size: 11px;

    color: #6b7280;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.exam-status {
    font-size: 10px;

    padding: 5px 8px;

    border-radius: 20px;

    background: #ecfdf5;

    color: #047857;

    font-weight: 600;
}



/* ==========================================================
   EMPTY
========================================================== */

.empty-box {
    grid-column: 1 / -1;

    text-align: center;

    padding: 35px 20px;

    color: #6b7280;
}


.empty-box > div {
    font-size: 35px;

    margin-bottom: 10px;
}


.empty-box h3 {
    font-size: 15px;

    color: #374151;

    margin-bottom: 4px;
}


.empty-box p {
    font-size: 12px;
}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .topbar {
        padding: 12px 4%;
    }


    .brand h2 {
        font-size: 15px;
    }


    .container {
        width: 94%;

        margin-top: 25px;
    }


    .page-header h1 {
        font-size: 24px;
    }


    .card {
        padding: 18px;

        border-radius: 15px;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .form-group.full {
        grid-column: auto;
    }


    .exam-list {
        grid-template-columns: 1fr;
    }


    .action-row {
        justify-content: stretch;
    }


    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

}


@media (max-width: 450px) {

    .back-btn {
        padding: 8px 10px;

        font-size: 11px;
    }


    .brand-logo {
        width: 40px;
        height: 40px;
    }


    .brand span {
        display: none;
    }

}