/* ==========================================================
   RAJ MOCK TEST V2.0
   MANAGE TESTS
========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: "Poppins", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}


/* ==========================================================
   TOPBAR
========================================================== */

.topbar {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;

    position: sticky;
    top: 0;
    z-index: 100;
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.brand-logo {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eef2ff;

    font-size: 22px;
}


.brand h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}


.brand span {
    display: block;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;

    color: #6b7280;
}


.back-btn {
    border: none;
    background: #f3f4f6;

    color: #374151;

    padding: 10px 17px;

    border-radius: 9px;

    font-family: inherit;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.back-btn:hover {
    background: #e5e7eb;
}


/* ==========================================================
   CONTAINER
========================================================== */

.container {
    max-width: 1100px;

    margin: 0 auto;

    padding: 35px 20px 60px;
}


/* ==========================================================
   PAGE HEADER
========================================================== */

.page-header {
    margin-bottom: 25px;
}


.eyebrow {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #6366f1;

    margin-bottom: 6px;
}


.page-header h1 {
    font-size: 30px;

    color: #111827;

    margin-bottom: 5px;
}


.page-header p {
    color: #6b7280;

    font-size: 14px;
}


/* ==========================================================
   CARD
========================================================== */

.card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 25px;

    margin-bottom: 22px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.04);
}


.card-header {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 25px;
}


.card-icon {
    width: 45px;
    height: 45px;

    background: #eef2ff;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;
}


.card-header h2 {
    font-size: 19px;

    color: #111827;
}


.card-header p {
    color: #6b7280;

    font-size: 12px;

    margin-top: 2px;
}


/* ==========================================================
   FORM
========================================================== */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.form-group label {
    font-size: 13px;

    font-weight: 600;

    color: #374151;
}


.form-group select {
    width: 100%;

    height: 48px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    padding: 0 14px;

    background: #ffffff;

    color: #111827;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    cursor: pointer;

    transition: 0.2s;
}


.form-group select:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.10);
}


.form-group select:disabled {
    background: #f3f4f6;

    color: #9ca3af;

    cursor: not-allowed;
}


/* ==========================================================
   TEST LIST
========================================================== */

.test-list {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.test-item {
    border: 1px solid #e5e7eb;

    border-radius: 13px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    transition: 0.2s;

    background: #ffffff;
}


.test-item:hover {
    border-color: #c7d2fe;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.04);
}


.test-info {
    min-width: 0;
}


.test-title {
    font-size: 16px;

    font-weight: 700;

    color: #111827;

    margin-bottom: 6px;

    word-break: break-word;
}


.test-description {
    font-size: 12px;

    color: #6b7280;

    margin-bottom: 10px;
}


.test-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.meta {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 5px 9px;

    background: #f3f4f6;

    border-radius: 7px;

    color: #4b5563;

    font-size: 11px;

    font-weight: 600;
}


.meta.premium {
    background: #fff7ed;

    color: #c2410c;
}


.meta.free {
    background: #ecfdf5;

    color: #047857;
}


/* ==========================================================
   DELETE BUTTON
========================================================== */

.delete-test-btn {
    flex-shrink: 0;

    border: none;

    background: #fee2e2;

    color: #dc2626;

    min-width: 95px;

    height: 40px;

    padding: 0 14px;

    border-radius: 9px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


.delete-test-btn:hover {
    background: #fecaca;

    color: #b91c1c;
}


.delete-test-btn:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


/* ==========================================================
   EMPTY / LOADING
========================================================== */

.empty-box {
    text-align: center;

    padding: 45px 20px;

    border: 1px dashed #d1d5db;

    border-radius: 12px;

    background: #fafafa;
}


.empty-icon {
    font-size: 35px;

    margin-bottom: 10px;
}


.empty-box h3 {
    font-size: 16px;

    color: #374151;

    margin-bottom: 5px;
}


.empty-box p {
    color: #9ca3af;

    font-size: 12px;
}


.loading-box {
    text-align: center;

    padding: 40px 20px;

    color: #6b7280;

    font-size: 13px;
}


.loader {
    width: 30px;
    height: 30px;

    border: 3px solid #e5e7eb;

    border-top-color: #6366f1;

    border-radius: 50%;

    margin: 0 auto 12px;

    animation: spin 0.8s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .topbar {
        height: auto;

        padding: 14px 16px;

        gap: 10px;
    }


    .brand h2 {
        font-size: 16px;
    }


    .back-btn {
        padding: 9px 12px;

        font-size: 11px;
    }


    .container {
        padding: 25px 14px 50px;
    }


    .page-header h1 {
        font-size: 25px;
    }


    .card {
        padding: 18px;

        border-radius: 13px;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .test-item {
        align-items: flex-start;

        flex-direction: column;
    }


    .delete-test-btn {
        width: 100%;
    }

}