/* ==========================================
   MASTER CSS ENTRYPOINT - APLIKASI KESISWAAN
   ========================================== */

/* Deps (layout/components/forms/table/button/dashboard/responsive) di-link paralel
   di header — rantai @import bikin CSS + font tiba berlarut saat reload (geser konten). */

/* Custom Page Specific Utilities */
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 15% 15%, rgba(30, 124, 255, 0.18), transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(28, 207, 138, 0.14), transparent 45%),
                var(--ui-bg);
    margin: 0;
    padding: var(--space-24);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(15, 45, 109, 0.16);
    animation: modalFadeScale 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-bs-theme="dark"] .login-card, body.dark-mode .login-card {
    background: rgba(11, 33, 82, 0.88);
    border-color: rgba(43, 183, 245, 0.18);
}

/* NOCTRA identity mark */
.login-brand-logo {
    display: block;
    width: min(100%, 245px);
    height: auto;
    margin: 0 auto 1.5rem;
}

.noctra-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 2px solid var(--noctra-outline);
    border-radius: 13px;
    background: var(--noctra-navy);
    box-shadow: 0 5px 14px rgba(15, 45, 109, 0.32);
    overflow: visible;
}

.noctra-mark__letter {
    color: transparent;
    background: var(--ui-primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.65rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.14em;
    transform: translateX(-1px);
}

.noctra-mark__star {
    position: absolute;
    top: -7px;
    right: -6px;
    color: var(--noctra-star);
    font-size: 0.85rem;
    line-height: 1;
    text-shadow: 0 0 8px rgba(86, 245, 138, 0.75);
}

.noctra-mark__accent {
    position: absolute;
    right: 6px;
    bottom: 7px;
    width: 15px;
    height: 4px;
    border-radius: 999px;
    background: var(--ui-success-gradient);
    transform: rotate(-45deg);
    box-shadow: 0 0 7px rgba(52, 217, 90, 0.45);
}

.noctra-wordmark {
    color: #081B4B;
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.noctra-submark {
    font-family: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.sb-topnav .noctra-wordmark { color: #FFFFFF; }

.noctra-logo-icon {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    overflow: hidden;
    border-radius: 12px;
}

.noctra-logo-icon img {
    position: absolute;
    width: 77px;
    max-width: none;
    height: auto;
    top: -3px;
    left: -17px;
}

/* Combo box standar: input dibungkus .combo-box-wrapper, daftar rekomendasi
   selalu overlay tepat di bawah input (tak menggeser layout / menutupi teks). */
.combo-box-wrapper,
.ncb-wrap {
    position: relative;
}

.combo-box-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1050;
    margin-top: 4px;
    max-height: 240px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ui-border, #D9E4F7);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    padding: 0;
}

/* Kontainer filter tak boleh memotong dropdown rekomendasi. */
.card .card-body {
    overflow: visible;
}

/* Kartu/modal yang memuat combo box: jangan potong dropdown rekomendasi.
   (Aturan .card/.modal-content overflow:hidden tetap berlaku di tempat lain.) */
.card:has(.combo-box-wrapper),
.card:has(.ncb-wrap),
.card:has(.ts-wrapper),
.modal-content:has(.combo-box-wrapper),
.modal-content:has(.ncb-wrap),
.modal-content:has(.ts-wrapper) {
    overflow: visible;
}
