/* =======================================================
   UKK SCP — Modern Sidebar Theme v2
   Elegant, refined, professional. Flat + soft depth,
   restrained color, generous spacing, crisp type.
   Konten aplikasi tidak diubah — hanya presentasi.
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --bg: #F6FAFD;
    --bg-2: #EAF2F8;
    --surface: #ffffff;
    --surface-2: #fbfbfe;
    --border: #DCE7F0;
    --border-2: #E7F0F6;

    --ink-900: #15161f;
    --ink-700: #4b4d5e;
    --ink-500: #767a8c;
    --ink-300: #a7abbd;

    --accent: #1A3D63;
    --accent-2: #4A7FA7;
    --accent-dark: #0A1931;
    --accent-soft: rgba(26, 61, 99, 0.10);
    --accent-ring: rgba(26, 61, 99, 0.20);

    --sidebar-bg: #0A1931;
    --sidebar-bg-2: #1A3D63;
    --sidebar-hover: rgba(255, 255, 255, 0.06);
    --sidebar-active: linear-gradient(90deg, rgba(74, 127, 167, 0.35), rgba(74, 127, 167, 0.08));
    --sidebar-text: rgba(255, 255, 255, 0.62);
    --sidebar-text-2: rgba(255, 255, 255, 0.38);
    --sidebar-border: rgba(255, 255, 255, 0.07);

    --r-xl: 20px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 9px;
    --r-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(20, 20, 43, 0.04);
    --shadow-sm: 0 2px 6px rgba(20, 20, 43, 0.05), 0 1px 2px rgba(20, 20, 43, 0.04);
    --shadow-md: 0 10px 28px -6px rgba(20, 20, 43, 0.10);
    --shadow-lg: 0 20px 48px -12px rgba(20, 20, 43, 0.16);
    --shadow-accent: 0 10px 24px -8px rgba(74, 127, 167, 0.45);
}

* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink-900);
    background: var(--bg);
    min-height: 100vh;
    font-size: 0.94rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.78;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

/* Subtle scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 150, 0.28);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 150, 0.45);
}

/* =======================================================
   APP LAYOUT — sidebar + main content
   ======================================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-toggle-state {
    display: none;
}

.sidebar-collapse-state {
    display: none;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.sidebar {
    --sb-width: 268px;
    width: var(--sb-width);
    flex: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(190deg, var(--sidebar-bg), var(--sidebar-bg-2));
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease, width 0.25s ease;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.03) inset;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.5rem 1.35rem 1.25rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.04rem;
    letter-spacing: -0.01em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(150deg, var(--accent-2), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
    flex: none;
    box-shadow: var(--shadow-accent);
}

.brand-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

.brand-text small {
    display: block;
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--sidebar-text-2);
    letter-spacing: 0.02em;
    margin-top: 1px;
}

.sidebar-close {
    display: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    cursor: pointer;
}

.sidebar-divider {
    height: 1px;
    margin: 0.35rem 1.35rem 0.9rem;
    background: var(--sidebar-border);
}

.side-section-label {
    padding: 0 1.15rem;
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sidebar-text-2);
}

.side-section-gap {
    margin-top: 0.9rem;
}

.sidebar-nav {
    flex: 1;
    padding: 0.25rem 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.66rem 0.9rem;
    border-radius: var(--r-sm);
    color: var(--sidebar-text);
    font-size: 0.885rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.side-link i {
    font-size: 1.02rem;
    width: 20px;
    text-align: center;
    flex: none;
}

.side-link span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
    opacity: 1;
}

.side-link.active {
    background: var(--sidebar-active);
    color: #fff;
    font-weight: 600;
}

.side-link.active::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 12%;
    bottom: 12%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.sidebar-footer {
    padding: 0.9rem 0.85rem 1.2rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.4rem 0.95rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(150deg, var(--accent-2), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex: none;
}

.user-avatar {
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-meta {
    min-width: 0;
}

.user-name {
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: var(--sidebar-text-2);
    font-size: 0.72rem;
}

.sidebar-logout-form {
    margin: 0;
}

.logout-link {
    color: #ff9990;
}

.logout-link:hover {
    background: rgba(255, 69, 58, 0.14);
    color: #ff5449;
}

/* Desktop sidebar collapse (icon rail) */
@media (min-width: 992px) {
    .sidebar-collapse-state:checked~.sidebar {
        --sb-width: 84px;
    }

    .sidebar-collapse-state:checked~.sidebar .brand-text,
    .sidebar-collapse-state:checked~.sidebar .side-section-label,
    .sidebar-collapse-state:checked~.sidebar .side-link span,
    .sidebar-collapse-state:checked~.sidebar .user-meta,
    .sidebar-collapse-state:checked~.sidebar .sidebar-logout-form span {
        display: none;
    }

    .sidebar-collapse-state:checked~.sidebar .side-link,
    .sidebar-collapse-state:checked~.sidebar .sidebar-user {
        justify-content: center;
    }

    .sidebar-collapse-state:checked~.sidebar .sidebar-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .sidebar-collapse-state:checked~.main-wrapper {
        margin-left: 84px;
    }
}

.main-wrapper {
    margin-left: var(--sb-width, 268px);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.topbar {
    min-height: 68px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.6rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 80;
}

.topbar-burger,
.topbar-collapse-btn {
    font-size: 1.3rem;
    color: var(--ink-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    transition: background 0.15s ease;
}

.topbar-burger:hover,
.topbar-collapse-btn:hover {
    background: var(--bg);
}

.topbar-burger {
    display: none;
}

.topbar-collapse-btn {
    display: none;
}

@media (min-width: 992px) {
    .topbar-collapse-btn {
        display: flex;
    }
}

.topbar-title-wrap {
    flex: 1;
    min-width: 0;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-date {
    font-size: 0.74rem;
    color: var(--ink-500);
    margin-top: 1px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: none;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.topbar-user-btn:hover {
    background: var(--bg);
}

.topbar-user-btn .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    border-radius: var(--r-sm);
}

.topbar-user-btn .tu-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.1;
}

.topbar-user-btn .tu-role {
    font-size: 0.68rem;
    color: var(--ink-500);
}

.topbar-user-btn i.bi-chevron-down {
    font-size: 0.7rem;
    color: var(--ink-500);
}

/* Lonceng notifikasi */
.topbar-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink-700, var(--ink-900));
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.topbar-notif-btn:hover {
    background: var(--bg);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}

.notif-menu {
    width: 340px;
    max-width: 90vw;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
}

.notif-menu .dropdown-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-900);
}

.notif-mark-all {
    font-size: 0.72rem;
    color: var(--accent);
    text-decoration: none;
}

.notif-mark-all:hover {
    color: var(--accent-dark);
}

.notif-item {
    display: block;
    padding: 0.55rem 1rem;
    white-space: normal;
    border-left: 3px solid transparent;
}

.notif-item.notif-unread {
    background: var(--accent-soft);
    border-left-color: var(--accent);
}

.notif-item .notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-900);
}

.notif-item .notif-message {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 1px;
}

.notif-item .notif-time {
    font-size: 0.68rem;
    margin-top: 2px;
}

.content {
    flex: 1;
    padding: 1.85rem 2rem 2.5rem;
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    animation: pageFadeIn 0.4s ease both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar-toggle-state:checked~.sidebar {
        transform: translateX(0);
        box-shadow: 24px 0 60px rgba(0, 0, 0, 0.28);
    }

    .sidebar-toggle-state:checked~.sidebar-backdrop {
        display: block;
    }

    .sidebar-close {
        display: block;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .topbar-burger {
        display: flex;
    }

    .content {
        padding: 1.35rem;
    }

    .topbar {
        padding: 0 1.1rem;
    }

    .tu-name,
    .tu-role {
        display: none;
    }

    .topbar-user-btn {
        padding: 0.3rem;
    }
}

/* =======================================================
   HP kecil (bukan iPad/laptop): rapikan topbar biar tidak
   melipat & kepotong, dan kecilkan padding konten.
   ======================================================= */
@media (max-width: 576px) {
    .topbar {
        padding: 0 0.85rem;
        gap: 0.5rem;
    }

    .topbar-date {
        display: none;
    }

    .topbar-title {
        font-size: 0.98rem;
    }

    .topbar-right {
        gap: 0.4rem;
    }

    .topbar-notif-btn {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
    }

    .topbar-user-btn {
        gap: 0;
        padding: 0.25rem;
    }

    .topbar-user-btn .user-avatar {
        width: 28px;
        height: 28px;
    }

    .topbar-user-btn i.bi-chevron-down {
        display: none;
    }

    .content {
        padding: 1rem;
    }

    .page-welcome {
        padding: 1.25rem;
        gap: 1rem;
    }

    .page-welcome .pw-icon {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .page-welcome h2 {
        font-size: 1.08rem;
    }

    .page-welcome p {
        font-size: 0.85rem;
        max-width: none;
    }

    .dash-section-title {
        font-size: 0.95rem;
    }

    .empty-hint-card {
        padding: 1.1rem;
    }
}

/* =======================================================
   PAGE HEADER helper (welcome / empty states)
   ======================================================= */
.page-welcome {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 2rem 2.1rem;
    border-radius: var(--r-xl);
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, #B3CFE5 100%);
    color: #fff;
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.page-welcome::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.page-welcome::before {
    content: '';
    position: absolute;
    right: 40px;
    bottom: -70px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.page-welcome .pw-icon {
    width: 58px;
    height: 58px;
    flex: none;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.page-welcome .pw-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.page-welcome h2 {
    font-size: 1.28rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.page-welcome p {
    margin: 0;
    opacity: 0.88;
    font-size: 0.9rem;
    max-width: 46ch;
}

.empty-hint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.empty-hint-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.35rem 1.4rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.empty-hint-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent-ring);
}

.empty-hint-card .ehc-icon {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: var(--r-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.empty-hint-card h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: var(--ink-900);
}

.empty-hint-card p {
    font-size: 0.8rem;
    color: var(--ink-500);
    margin: 0;
    line-height: 1.5;
}

/* =======================================================
   BUTTONS
   ======================================================= */
.btn {
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--r-sm) !important;
    padding: 0.58rem 1.2rem;
    letter-spacing: -0.005em;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-sm {
    padding: 0.38rem 0.9rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(26, 61, 99, 0.55);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(22, 163, 74, 0.45);
}

.btn-success:hover {
    background: #128a3e;
    border-color: #128a3e;
}

.btn-danger {
    background: #e0473f;
    border-color: #e0473f;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(224, 71, 63, 0.45);
}

.btn-danger:hover {
    background: #c93b34;
    border-color: #c93b34;
}

.btn-info {
    background: #0891b2;
    border-color: #0891b2;
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(8, 145, 178, 0.4);
}

.btn-info:hover {
    background: #077b98;
    border-color: #077b98;
}

.btn-warning {
    background: #eab308;
    border-color: #eab308;
    color: #1a1c23;
    box-shadow: 0 4px 14px -4px rgba(234, 179, 8, 0.4);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-color: var(--accent);
}

.btn-outline-secondary {
    color: var(--ink-700);
    border-color: var(--border);
    background: var(--surface);
}

.btn-outline-secondary:hover {
    background: var(--bg);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 0.5s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* =======================================================
   CARDS
   ======================================================= */
.card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--ink-900) !important;
    font-weight: 700;
    font-family: var(--font-display);
    padding: 1.05rem 1.35rem;
    border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
}

.card-header.bg-primary {
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
    border-left: 3px solid var(--accent);
}

.card-header.bg-success {
    background: rgba(22, 163, 74, 0.10) !important;
    color: #0f6b32 !important;
    border-left: 3px solid #16a34a;
}

.card-header.bg-danger {
    background: rgba(224, 71, 63, 0.10) !important;
    color: #a12920 !important;
    border-left: 3px solid #e0473f;
}

.card-header.bg-dark {
    background: var(--bg) !important;
    color: var(--ink-900) !important;
    border-left: 3px solid var(--ink-900);
}

.card-body {
    padding: 1.45rem;
}

.card.border-primary,
.card.border-success,
.card.border-info {
    border-color: var(--border) !important;
    border-top: 3px solid var(--accent) !important;
}

.card.border-success {
    border-top-color: #16a34a !important;
}

.card.border-info {
    border-top-color: #0891b2 !important;
}

.card.h-100.border-primary:hover,
.card.h-100.border-success:hover,
.card.h-100.border-info:hover {
    transform: translateY(-3px);
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.icon-circle.icon-primary {
    background: var(--accent-soft);
    color: var(--accent);
}

.icon-circle.icon-success {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

/* =======================================================
   FORM CONTROLS
   ======================================================= */
.form-label {
    font-weight: 600;
    color: var(--ink-700);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--r-sm) !important;
    padding: 0.6rem 0.9rem !important;
    color: var(--ink-900);
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-ring) !important;
}

.form-control[readonly] {
    background: var(--bg) !important;
    color: var(--ink-700);
}

.form-text {
    color: var(--ink-500);
    font-size: 0.78rem;
}

/* =======================================================
   TABLES
   ======================================================= */
.table-responsive {
    border-radius: var(--r-md);
}

.table {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.table thead th,
.table> :not(caption)>*>th {
    background: var(--bg) !important;
    color: var(--ink-500) !important;
    border-bottom: 1px solid var(--border) !important;
    text-transform: uppercase;
    font-size: 0.67rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.8rem 1rem;
}

.table thead.table-light th,
.table thead.table-dark th {
    background: var(--bg) !important;
    color: var(--ink-500) !important;
}

.table td {
    padding: 0.82rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-2);
    border-top: none;
}

.table-bordered,
.table-bordered th,
.table-bordered td {
    border-color: var(--border-2) !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: var(--bg);
}

.table tbody tr:hover {
    background-color: var(--accent-soft);
}

/* =======================================================
   BADGES
   ======================================================= */
.badge {
    border-radius: var(--r-pill) !important;
    font-weight: 600;
    padding: 0.42em 0.78em;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

.bg-primary {
    background: var(--accent-soft) !important;
    color: var(--accent-dark) !important;
}

.bg-success {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #0f6b32 !important;
}

.bg-danger {
    background: rgba(224, 71, 63, 0.12) !important;
    color: #a12920 !important;
}

.bg-warning {
    background: rgba(234, 179, 8, 0.16) !important;
    color: #8a6408 !important;
}

.bg-secondary {
    background: var(--border-2) !important;
    color: var(--ink-700) !important;
}

.bg-info {
    background: rgba(8, 145, 178, 0.12) !important;
    color: #075c72 !important;
}

.bg-dark {
    background: var(--ink-900) !important;
    color: #fff !important;
}

/* =======================================================
   ALERTS
   ======================================================= */
.alert {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface);
    font-size: 0.9rem;
    box-shadow: var(--shadow-xs);
}

.alert-success {
    border-left: 3px solid #16a34a;
    color: #0f6b32;
    background: rgba(22, 163, 74, 0.06);
}

.alert-danger {
    border-left: 3px solid #e0473f;
    color: #a12920;
    background: rgba(224, 71, 63, 0.06);
}

/* =======================================================
   DASHBOARD GRID (bento) - used on functional pages
   ======================================================= */
.bento-grid {
    display: grid;
    gap: 1.25rem;
}

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

.bento-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bento-grid.asym {
    grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 991px) {
    .bento-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {

    .bento-grid.cols-2,
    .bento-grid.cols-3,
    .bento-grid.asym {
        grid-template-columns: 1fr;
    }
}

/* Subtle reveal-on-scroll */
.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: .02s
}

.reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: .08s
}

.reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: .14s
}

.reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: .20s
}

/* Top scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 1100;
    transition: width 0.1s linear;
}

/* =======================================================
   AUTH SCREEN (login) - split layout: form kiri, visual kanan
   Palet warna: 0A1931 (navy gelap), 1A3D63, 4A7FA7, B3CFE5, F6FAFD
   ======================================================= */
:root {
    --login-navy: #0A1931;
    --login-navy-2: #1A3D63;
    --login-blue: #4A7FA7;
    --login-blue-light: #B3CFE5;
    --login-white: #F6FAFD;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    background: var(--login-white);
}

.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-split-form {
    flex: 1 1 480px;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--login-white);
}

.auth-split-form-inner {
    width: 100%;
    max-width: 380px;
}

.auth-logo-split {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.auth-split-form-inner h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-align: center;
    color: var(--login-navy);
    letter-spacing: -0.01em;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.auth-split-form-inner .auth-sub {
    text-align: center;
    color: var(--login-blue);
    font-size: 0.85rem;
    margin-bottom: 26px;
    line-height: 1.5;
}

.auth-split-form-inner form {
    text-align: left;
}

.auth-split-form-inner .form-label {
    color: var(--login-navy-2);
    font-weight: 600;
    font-size: 0.86rem;
}

.auth-split-form-inner .form-control {
    border: 1.5px solid var(--login-blue-light);
    border-radius: var(--r-md);
    padding: 0.6rem 0.85rem;
}

.auth-split-form-inner .form-control:focus {
    border-color: var(--login-blue);
    box-shadow: 0 0 0 3px rgba(74, 127, 167, 0.18);
}

.auth-btn-split {
    background: linear-gradient(135deg, var(--login-navy-2), var(--login-blue));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: var(--r-md);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.auth-btn-split:hover {
    filter: brightness(1.08);
    color: #fff;
    transform: translateY(-1px);
}

.auth-btn-split:active {
    transform: translateY(0);
}

.auth-split-visual {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: url('../images/bg-login-sekolah.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 52px;
    color: #fff;
}

.auth-split-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(10, 25, 49, 0.93) 0%, rgba(26, 61, 99, 0.82) 45%, rgba(74, 127, 167, 0.72) 100%);
}

.auth-split-visual-top,
.auth-split-visual-bottom {
    position: relative;
    z-index: 1;
}

.auth-split-visual-top {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.auth-split-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.auth-split-visual-bottom h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 14px;
    max-width: 420px;
}

.auth-split-visual-bottom p {
    color: rgba(246, 250, 253, 0.86);
    font-size: 0.95rem;
    max-width: 400px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .auth-split-visual {
        display: none;
    }

    .auth-split-form {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   Dashboard: judul seksi & daftar ketentuan
   ============================================================ */
.dash-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 1.6rem 0 0.8rem;
}

.dash-section-title i {
    color: var(--accent);
}

.dash-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dash-rules li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.7rem;
    font-size: 0.88rem;
    color: var(--ink-700);
    line-height: 1.55;
    border-bottom: 1px solid var(--border-2);
}

.dash-rules li:last-child {
    border-bottom: 0;
}

.dash-rules li::before {
    content: "\F26A";
    /* bi-check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--accent);
}


/* ============================================================
   Logo SMK Negeri 1 Bantul (sidebar + halaman login)
   ============================================================ */
.brand-icon.has-logo {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.brand-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =======================================================
   DASHBOARD GURU & PANEL LOCK SCHEDULE (SCP)
   ======================================================= */
.scp-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.scp-head h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .2rem; }
.scp-head p { margin: 0; color: var(--ink-500); font-size: .9rem; }

.scp-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    border-radius: var(--r-pill);
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .35);
    color: #1d4ed8;
    font-weight: 700;
    font-size: .8rem;
    white-space: nowrap;
}

.scp-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.1rem;
    border-radius: var(--r-lg);
    background: #fdecec;
    border: 1px solid #f6c9c9;
    border-left: 6px solid #dc2626;
    box-shadow: var(--shadow-xs);
}
.scp-alert-icon {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.scp-alert-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.scp-alert-text strong { color: #991b1b; font-size: .95rem; }
.scp-alert-text span { color: #7f1d1d; font-size: .82rem; }
.scp-alert-btn {
    flex: none;
    padding: .55rem 1.1rem;
    border-radius: var(--r-md);
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.scp-alert-btn:hover { background: #b91c1c; color: #fff; transform: translateY(-1px); }

.scp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.scp-stat {
    position: relative;
    padding: 1rem 1.25rem 1rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.scp-stat::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 16px;
    bottom: 16px;
    width: 6px;
    border-radius: 6px;
    background: var(--c, var(--accent));
}
.scp-stat-label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.scp-stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.scp-stat-value.scp-stat-text { font-size: 1.5rem; padding-top: .2rem; }

.scp-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.25rem;
}
.scp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .8rem;
}
.scp-panel-head h5 { margin: 0; font-weight: 700; font-size: 1.05rem; }

.scp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.scp-table th {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-500);
    padding: .65rem .75rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.scp-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.scp-table tbody tr:last-child td { border-bottom: 0; }
.scp-table tr.row-bad td { background: #fdecec; }
.scp-table tr.row-bad td:first-child { border-radius: 12px 0 0 12px; }
.scp-table tr.row-bad td:last-child { border-radius: 0 12px 12px 0; }

.scp-pill {
    display: inline-block;
    padding: .22rem .7rem;
    border-radius: var(--r-pill);
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.scp-pill-ok   { background: rgba(22, 163, 74, .12);  color: #15803d; border-color: rgba(22, 163, 74, .35); }
.scp-pill-bad  { background: rgba(220, 38, 38, .12);  color: #b91c1c; border-color: rgba(220, 38, 38, .35); }
.scp-pill-warn { background: rgba(217, 119, 6, .14);  color: #b45309; border-color: rgba(217, 119, 6, .38); }
.scp-pill-info { background: rgba(37, 99, 235, .10);  color: #1d4ed8; border-color: rgba(37, 99, 235, .30); }
a.scp-pill:hover { filter: brightness(.95); }

.scp-empty { text-align: center; padding: 2rem 1rem; color: var(--ink-500); }
.scp-empty i { font-size: 2rem; opacity: .6; }
.scp-empty p { margin: .5rem 0 0; }

/* --- Panel Waka: Siklus Blok & Lock Schedule --- */
.scp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.scp-panel-note { color: var(--ink-500); font-size: .8rem; margin: -.4rem 0 1rem; }

.scp-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 5px;
    border-radius: var(--r-pill);
    background: var(--bg-2);
    border: 1px solid var(--border);
}
.scp-segment button {
    border: 0;
    padding: .7rem 1rem;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--ink-700);
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}
.scp-segment button:hover:not(.active) { background: rgba(37, 99, 235, .08); }
.scp-segment button.active { background: #2563eb; color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .6); }

.scp-lock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: .75rem;
    border-radius: var(--r-md);
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.scp-lock-item:last-child { margin-bottom: 0; }
.scp-lock-item h6 { margin: 0 0 .35rem; font-weight: 700; }
.scp-btn {
    border: 0;
    padding: .55rem 1.3rem;
    border-radius: var(--r-md);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    transition: filter .2s ease, transform .2s ease;
}
.scp-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
.scp-btn-danger { background: #dc2626; }
.scp-btn-success { background: #16a34a; }

@media (max-width: 575.98px) {
    .scp-alert { flex-wrap: wrap; }
    .scp-alert-btn { width: 100%; text-align: center; }
    .scp-panel { padding: 1.1rem 1rem; }
}
