:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-soft: #eef2ff;

    --secondary: #06b6d4;
    --accent: #8b5cf6;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --navy-950: #020617;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;

    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;

    --sidebar-width: 278px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, .04),
        0 2px 8px rgba(15, 23, 42, .04);

    --shadow-md:
        0 8px 30px rgba(15, 23, 42, .08);

    --shadow-lg:
        0 25px 70px rgba(15, 23, 42, .15);

    --transition:
        cubic-bezier(.4, 0, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--navy-900);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ==================================================
   ICONS
================================================== */

.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 auto;
}

.icon-lg {
    width: 25px;
    height: 25px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* ==================================================
   LOGIN
================================================== */

.login-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(79, 70, 229, .14),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(6, 182, 212, .14),
            transparent 32%
        ),
        #f8fafc;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
    overflow: hidden;
    position: relative;
}

.login-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    opacity: .5;
    animation: orbFloat 10s ease-in-out infinite;
}

.login-orb.one {
    width: 280px;
    height: 280px;
    left: -70px;
    top: -90px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );
}

.login-orb.two {
    width: 230px;
    height: 230px;
    right: -60px;
    bottom: -70px;

    background:
        linear-gradient(
            135deg,
            #06b6d4,
            #3b82f6
        );

    animation-delay: -4s;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 680px;

    display: grid;
    grid-template-columns: 1.15fr .85fr;

    background:
        rgba(255, 255, 255, .88);

    border:
        1px solid rgba(255,255,255,.8);

    backdrop-filter: blur(20px);

    border-radius: 34px;
    overflow: hidden;

    box-shadow:
        0 40px 100px rgba(15, 23, 42, .16);

    position: relative;
    z-index: 2;

    animation:
        fadeUp .7s var(--transition);
}

.login-showcase {
    padding: 58px;

    color: white;

    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.97),
            rgba(30,41,59,.98)
        );

    position: relative;
    overflow: hidden;
}

.login-showcase::before {
    content: "";

    position: absolute;
    width: 460px;
    height: 460px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle,
            rgba(99,102,241,.32),
            transparent 65%
        );

    right: -180px;
    top: -180px;
}

.login-showcase::after {
    content: "";

    position: absolute;
    width: 380px;
    height: 380px;

    border-radius: 999px;

    background:
        radial-gradient(
            circle,
            rgba(6,182,212,.23),
            transparent 66%
        );

    left: -150px;
    bottom: -170px;
}

.login-brand {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 80px;
}

.brand-mark {
    width: 48px;
    height: 48px;

    border-radius: 15px;

    display: grid;
    place-items: center;

    font-size: 20px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #06b6d4
        );

    box-shadow:
        0 12px 35px rgba(79,70,229,.35);
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-description {
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.login-hero {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.login-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;

    padding: 7px 11px;

    color: #c7d2fe;
    background:
        rgba(99,102,241,.12);

    border:
        1px solid rgba(129,140,248,.22);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;

    margin-bottom: 22px;
}

.login-hero h1 {
    margin: 0;

    font-size:
        clamp(37px, 4vw, 57px);

    line-height: 1.08;
    letter-spacing: -.045em;

    font-weight: 800;
}

.login-hero h1 span {
    background:
        linear-gradient(
            90deg,
            #a5b4fc,
            #67e8f9
        );

    -webkit-background-clip: text;
    color: transparent;
}

.login-hero > p {
    margin: 24px 0 34px;

    max-width: 560px;

    color: #cbd5e1;

    font-size: 16px;
    line-height: 1.75;
}

.login-features {
    display: grid;
    gap: 14px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px 17px;

    border:
        1px solid rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.04);

    border-radius: 15px;

    transition:
        transform .25s var(--transition),
        background .25s var(--transition);
}

.login-feature:hover {
    transform: translateX(6px);
    background:
        rgba(255,255,255,.075);
}

.login-feature-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    background:
        rgba(99,102,241,.16);

    color: #a5b4fc;
}

.login-feature strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.login-feature span {
    color: #94a3b8;
    font-size: 12px;
}

.login-form-side {
    padding:
        55px 60px;

    display: flex;
    align-items: center;
}

.login-form-box {
    width: 100%;
    max-width: 410px;
    margin: auto;
}

.login-form-heading {
    margin-bottom: 32px;
}

.login-form-heading h2 {
    margin: 0 0 9px;

    font-size: 30px;
    letter-spacing: -.035em;
}

.login-form-heading p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.6;
}

.form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: var(--navy-700);
}

.form-group {
    margin-bottom: 19px;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    width: 19px;
    height: 19px;

    color: #94a3b8;

    pointer-events: none;
}

.premium-input {
    width: 100%;

    padding:
        14px 15px 14px 46px;

    border:
        1px solid var(--slate-200);

    background: white;

    border-radius: 13px;

    outline: none;

    font-size: 14px;

    transition:
        border .2s,
        box-shadow .2s,
        transform .2s;
}

.premium-input:hover {
    border-color: #c7d2fe;
}

.premium-input:focus {
    border-color: #6366f1;

    box-shadow:
        0 0 0 4px
        rgba(99,102,241,.09);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    margin:
        5px 0 22px;

    font-size: 13px;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--slate-600);
}

.login-button {
    width: 100%;

    border: 0;

    padding:
        14px 18px;

    border-radius: 13px;

    cursor: pointer;

    color: white;

    font-size: 14px;
    font-weight: 750;

    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );

    box-shadow:
        0 12px 25px
        rgba(79,70,229,.24);

    transition:
        transform .2s var(--transition),
        box-shadow .2s var(--transition);
}

.login-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 34px
        rgba(79,70,229,.33);
}

.login-button:active {
    transform: translateY(0);
}

.login-alert {
    padding: 12px 14px;

    margin-bottom: 18px;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.5;
}

.login-alert.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.login-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.login-security {
    margin-top: 25px;

    display: flex;
    justify-content: center;
    gap: 7px;
    align-items: center;

    color: #94a3b8;
    font-size: 11px;
}

/* ==================================================
   DASHBOARD SHELL
================================================== */

.app-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(99,102,241,.06),
            transparent 25%
        ),
        var(--slate-50);
}

.app-sidebar {
    width: var(--sidebar-width);

    position: fixed;
    inset:
        0 auto 0 0;

    z-index: 100;

    padding:
        22px 18px;

    color: white;

    background:
        linear-gradient(
            180deg,
            #0f172a 0%,
            #020617 100%
        );

    overflow-y: auto;

    border-right:
        1px solid rgba(255,255,255,.05);

    transition:
        transform .3s var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding:
        7px 7px 24px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

    margin-bottom: 18px;
}

.sidebar-brand .brand-mark {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
}

.sidebar-caption {
    font-size: 10px;
    margin-top: 2px;
    color: #64748b;
}

.profile-card {
    padding: 14px;

    margin:
        7px 0 20px;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.025)
        );
}

.profile-row {
    display: flex;
    gap: 11px;
    align-items: center;
}

.profile-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #06b6d4
        );
}

.profile-name {
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-role {
    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
    letter-spacing: .08em;

    text-transform: uppercase;
}

.sidebar-section-title {
    padding:
        9px 11px;

    color: #475569;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;

    text-transform: uppercase;
}

.sidebar-menu {
    display: grid;
    gap: 4px;
}

.sidebar-link {
    position: relative;

    display: flex;
    align-items: center;
    gap: 11px;

    padding:
        11px 12px;

    color: #94a3b8;

    text-decoration: none;

    border-radius: 11px;

    font-size: 13px;
    font-weight: 550;

    transition:
        color .2s,
        background .2s,
        transform .2s;
}

.sidebar-link:hover {
    color: white;

    background:
        rgba(255,255,255,.055);

    transform: translateX(3px);
}

.sidebar-link.active {
    color: white;

    background:
        linear-gradient(
            90deg,
            rgba(79,70,229,.28),
            rgba(79,70,229,.10)
        );
}

.sidebar-link.active::before {
    content: "";

    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;

    width: 3px;

    border-radius: 10px;

    background:
        linear-gradient(
            #818cf8,
            #22d3ee
        );
}

.sidebar-link-icon {
    width: 19px;
    height: 19px;

    flex: 0 0 auto;
}

.sidebar-footer {
    margin-top: 24px;
}

.sidebar-logout {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 11px;

    padding:
        11px 12px;

    border: 0;

    background: transparent;

    color: #fda4af;

    border-radius: 11px;

    cursor: pointer;

    transition:
        background .2s,
        color .2s;
}

.sidebar-logout:hover {
    background:
        rgba(244,63,94,.1);

    color: #fecdd3;
}

.app-main {
    margin-left:
        var(--sidebar-width);

    min-height: 100vh;
}

.app-topbar {
    height: 76px;

    position: sticky;
    top: 0;

    z-index: 50;

    padding:
        0 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background:
        rgba(248,250,252,.88);

    backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid rgba(226,232,240,.85);
}

.mobile-menu-btn {
    display: none;

    width: 40px;
    height: 40px;

    place-items: center;

    border: 1px solid var(--slate-200);
    background: white;

    border-radius: 11px;

    cursor: pointer;
}

.topbar-greeting {
    font-size: 12px;
    color: var(--slate-500);
}

.topbar-name {
    margin-top: 2px;
    font-weight: 750;
    font-size: 15px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-pill {
    display: flex;
    align-items: center;
    gap: 8px;

    padding:
        9px 12px;

    background: white;

    border:
        1px solid var(--slate-200);

    border-radius: 999px;

    color: var(--slate-600);

    font-size: 11px;

    box-shadow: var(--shadow-sm);
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: var(--success);

    box-shadow:
        0 0 0 4px
        rgba(16,185,129,.12);
}

.content-wrap {
    padding:
        29px 30px 50px;

    max-width: 1650px;
    margin: auto;
}

/* ==================================================
   DASHBOARD
================================================== */

.page-hero {
    position: relative;
    overflow: hidden;

    padding:
        28px 30px;

    margin-bottom: 22px;

    border-radius: 22px;

    color: white;

    background:
        linear-gradient(
            125deg,
            #312e81,
            #4f46e5 58%,
            #0891b2
        );

    box-shadow:
        0 18px 50px
        rgba(79,70,229,.18);

    animation:
        fadeUp .5s var(--transition);
}

.page-hero::before {
    content: "";

    position: absolute;

    width: 270px;
    height: 270px;

    right: -70px;
    top: -120px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.09);
}

.page-hero::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 110px;
    bottom: -130px;

    border-radius: 999px;

    background:
        rgba(255,255,255,.06);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding:
        6px 10px;

    border:
        1px solid rgba(255,255,255,.18);

    background:
        rgba(255,255,255,.09);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;

    margin-bottom: 12px;
}

.page-hero h1 {
    margin: 0;

    font-size:
        clamp(24px, 3vw, 34px);

    letter-spacing: -.035em;
}

.page-hero p {
    max-width: 700px;

    margin:
        9px 0 0;

    color: #e0e7ff;

    font-size: 13px;
    line-height: 1.65;
}

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-bottom: 22px;
}

.stat-card {
    position: relative;
    overflow: hidden;

    padding: 20px;

    min-height: 135px;

    background: white;

    border:
        1px solid #edf2f7;

    border-radius: 18px;

    box-shadow: var(--shadow-sm);

    transition:
        transform .25s var(--transition),
        box-shadow .25s var(--transition);

    animation:
        fadeUp .5s
        var(--transition)
        both;
}

.stat-card:hover {
    transform:
        translateY(-5px);

    box-shadow: var(--shadow-md);
}

.stat-card:nth-child(2) {
    animation-delay: .04s;
}

.stat-card:nth-child(3) {
    animation-delay: .08s;
}

.stat-card:nth-child(4) {
    animation-delay: .12s;
}

.stat-card:nth-child(5) {
    animation-delay: .16s;
}

.stat-card:nth-child(6) {
    animation-delay: .20s;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: 12px;
    font-weight: 650;
    color: var(--slate-500);
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: var(--primary);

    background: var(--primary-soft);
}

.stat-number {
    margin-top: 12px;

    font-size: 29px;
    font-weight: 820;
    letter-spacing: -.045em;
}

.stat-foot {
    margin-top: 5px;

    color: var(--slate-400);

    font-size: 10px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        1.4fr .6fr;

    gap: 18px;
}

.panel-card {
    background: white;

    border:
        1px solid #edf2f7;

    border-radius: 19px;

    box-shadow: var(--shadow-sm);

    padding: 21px;

    animation:
        fadeUp .55s
        var(--transition)
        both;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.panel-title {
    font-size: 15px;
    font-weight: 760;
}

.panel-description {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 11px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding:
        6px 10px;

    border-radius: 999px;

    color: #047857;
    background: #ecfdf5;

    font-size: 10px;
    font-weight: 720;
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    padding:
        13px;

    border:
        1px solid var(--slate-200);

    border-radius: 13px;

    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.quick-action:hover {
    border-color: #c7d2fe;
    background: #f8faff;
    transform: translateX(3px);
}

.quick-action-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 10px;

    background: var(--primary-soft);
    color: var(--primary);
}

.quick-action-title {
    font-size: 12px;
    font-weight: 700;
}

.quick-action-description {
    font-size: 10px;
    color: var(--slate-500);
    margin-top: 2px;
}

/* ==================================================
   UTILITIES
================================================== */

.muted {
    color: var(--slate-500);
}

.fade-up {
    animation:
        fadeUp .55s var(--transition);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes orbFloat {
    0%,
    100% {
        transform:
            translate3d(0,0,0)
            scale(1);
    }

    50% {
        transform:
            translate3d(15px,-16px,0)
            scale(1.05);
    }
}

/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width: 1150px) {
    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-form-side {
        padding:
            48px 35px;
    }

    .app-sidebar {
        transform:
            translateX(-100%);

        box-shadow:
            30px 0 60px
            rgba(15,23,42,.25);
    }

    body.sidebar-open
    .app-sidebar {
        transform:
            translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: grid;
    }
}

@media(max-width: 620px) {
    .login-page {
        padding: 13px;
    }

    .login-shell {
        min-height: auto;
        border-radius: 22px;
    }

    .login-form-side {
        padding:
            37px 24px;
    }

    .app-topbar {
        padding:
            0 16px;
    }

    .topbar-pill {
        display: none;
    }

    .content-wrap {
        padding:
            20px 15px 40px;
    }

    .page-hero {
        padding:
            23px 21px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* SIMJUD USERS MODULE START */

.module-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:20px;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:39px;
    padding:9px 14px;
    border-radius:10px;
    border:1px solid transparent;
    text-decoration:none;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:
        transform .2s var(--transition),
        box-shadow .2s var(--transition),
        background .2s;
}

.btn:hover {
    transform:translateY(-1px);
}

.btn.primary {
    color:white;
    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #6366f1
        );
    box-shadow:
        0 8px 20px
        rgba(79,70,229,.18);
}

.btn.secondary {
    background:#0f172a;
    color:white;
}

.btn.light {
    background:white;
    color:#475569;
    border-color:#e2e8f0;
}

.module-alert {
    margin-bottom:16px;
    padding:13px 15px;
    border-radius:12px;
    font-size:12px;
    line-height:1.6;
}

.module-alert.success {
    color:#047857;
    background:#ecfdf5;
    border:1px solid #d1fae5;
}

.module-alert.danger {
    color:#be123c;
    background:#fff1f2;
    border:1px solid #ffe4e6;
}

.temporary-password {
    margin-bottom:18px;
    padding:17px 18px;
    border-radius:16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    background:
        linear-gradient(
            135deg,
            #eef2ff,
            #ecfeff
        );
    border:1px solid #c7d2fe;
}

.temporary-value {
    margin:8px 0 5px;
    font-size:20px;
    font-weight:800;
    letter-spacing:.08em;
    color:#312e81;
}

.temporary-password small {
    color:#64748b;
}

.user-stats {
    grid-template-columns:
        repeat(4,minmax(0,1fr));
}

.filter-grid {
    display:grid;
    grid-template-columns:
        minmax(250px,1fr)
        160px
        160px
        auto
        auto;
    gap:10px;
    margin-bottom:20px;
}

.module-input,
.module-select {
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:1px solid #e2e8f0;
    border-radius:11px;
    background:white;
    color:#0f172a;
    outline:none;
    font-size:12px;
    transition:
        border-color .2s,
        box-shadow .2s;
}

.module-input:focus,
.module-select:focus {
    border-color:#818cf8;
    box-shadow:
        0 0 0 4px
        rgba(99,102,241,.08);
}

.table-wrap {
    width:100%;
    overflow-x:auto;
    border:1px solid #edf2f7;
    border-radius:14px;
}

.premium-table {
    width:100%;
    min-width:1000px;
    border-collapse:collapse;
    background:white;
}

.premium-table th {
    padding:12px 14px;
    text-align:left;
    color:#64748b;
    background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.premium-table td {
    padding:14px;
    border-bottom:1px solid #f1f5f9;
    font-size:12px;
    vertical-align:middle;
}

.premium-table tbody tr {
    transition:background .15s;
}

.premium-table tbody tr:hover {
    background:#fafbff;
}

.table-user {
    display:flex;
    align-items:center;
    gap:11px;
}

.mini-avatar {
    width:38px;
    height:38px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:11px;
    color:white;
    font-size:11px;
    font-weight:800;
    background:
        linear-gradient(
            135deg,
            #6366f1,
            #06b6d4
        );
}

.table-user strong {
    display:block;
    font-size:12px;
}

.table-user span,
.table-subtext {
    display:block;
    color:#94a3b8;
    font-size:10px;
    margin-top:3px;
}

.role-badge,
.status-chip {
    display:inline-flex;
    align-items:center;
    padding:5px 9px;
    border-radius:999px;
    font-size:9px;
    font-weight:750;
}

.role-badge.admin {
    color:#6d28d9;
    background:#f3e8ff;
}

.role-badge.dosen {
    color:#0369a1;
    background:#e0f2fe;
}

.role-badge.mahasiswa {
    color:#047857;
    background:#d1fae5;
}

.status-chip.active {
    color:#047857;
    background:#ecfdf5;
}

.status-chip.inactive {
    color:#b91c1c;
    background:#fef2f2;
}

.action-group {
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:6px;
}

.action-group form {
    margin:0;
}

.action-btn {
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:6px 9px;
    border:0;
    border-radius:8px;
    font-size:9px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
}

.action-btn.edit {
    color:#3730a3;
    background:#eef2ff;
}

.action-btn.warning {
    color:#92400e;
    background:#fffbeb;
}

.action-btn.success {
    color:#047857;
    background:#ecfdf5;
}

.action-btn.reset {
    color:#0369a1;
    background:#f0f9ff;
}

.action-btn.danger {
    color:#be123c;
    background:#fff1f2;
}

.self-label {
    color:#64748b;
    font-size:10px;
    font-weight:600;
}

.pagination-bar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    margin-top:18px;
    color:#64748b;
    font-size:11px;
}

.pagination-actions {
    display:flex;
    align-items:center;
    gap:7px;
}

.page-btn {
    padding:7px 10px;
    border:1px solid #e2e8f0;
    border-radius:9px;
    text-decoration:none;
    background:white;
    color:#475569;
}

.page-btn.disabled {
    opacity:.45;
}

.page-current {
    padding:7px 10px;
    color:#312e81;
    font-weight:700;
}

.empty-state {
    padding:40px !important;
    text-align:center;
    color:#94a3b8;
}

.text-right {
    text-align:right !important;
}

.form-panel {
    max-width:1050px;
    margin:0 auto;
}

.form-grid {
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:18px;
}

.form-field {
    min-width:0;
}

.form-field.span-2 {
    grid-column:span 2;
}

.module-label {
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-size:11px;
    font-weight:700;
}

.module-label span {
    color:#ef4444;
}

.field-help {
    display:block;
    margin-top:5px;
    color:#94a3b8;
    font-size:9px;
}

.form-actions {
    display:flex;
    justify-content:flex-end;
    gap:9px;
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid #f1f5f9;
}

.switch-row {
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    border:1px solid #e2e8f0;
    border-radius:13px;
    cursor:pointer;
}

.switch-row input {
    display:none;
}

.switch-ui {
    position:relative;
    width:42px;
    height:23px;
    flex:0 0 auto;
    border-radius:999px;
    background:#cbd5e1;
    transition:background .2s;
}

.switch-ui::after {
    content:"";
    position:absolute;
    width:17px;
    height:17px;
    top:3px;
    left:3px;
    border-radius:999px;
    background:white;
    box-shadow:
        0 2px 5px rgba(15,23,42,.18);
    transition:transform .2s;
}

.switch-row input:checked
+ .switch-ui {
    background:#4f46e5;
}

.switch-row input:checked
+ .switch-ui::after {
    transform:translateX(19px);
}

.switch-row strong,
.switch-row small {
    display:block;
}

.switch-row strong {
    font-size:11px;
}

.switch-row small {
    margin-top:3px;
    color:#64748b;
    font-size:9px;
}

.error-list {
    margin:8px 0 0;
    padding-left:18px;
}

@media(max-width:1100px) {
    .filter-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .filter-search {
        grid-column:span 2;
    }
}

@media(max-width:700px) {
    .user-stats {
        grid-template-columns:
            repeat(2,1fr);
    }

    .form-grid {
        grid-template-columns:1fr;
    }

    .form-field.span-2 {
        grid-column:span 1;
    }

    .pagination-bar,
    .module-header,
    .temporary-password {
        align-items:stretch;
        flex-direction:column;
    }

    .pagination-actions {
        justify-content:space-between;
    }
}

/* SIMJUD USERS MODULE END */


/* SIMJUD TITLES MODULE START */

.title-stats {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.header-actions {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
}

.title-filter-grid {
    display:grid;
    grid-template-columns:
        minmax(300px, 1fr)
        120px
        minmax(180px, .7fr)
        130px
        auto
        auto;
    gap:10px;
    margin-bottom:20px;
}

.title-search {
    min-width:0;
}

.title-table {
    min-width:1180px;
}

.row-number {
    color:#94a3b8;
    font-weight:700;
}

.thesis-title-text {
    max-width:500px;
    color:#0f172a;
    font-size:12px;
    line-height:1.55;
    font-weight:650;
}

.title-meta {
    margin-top:6px;
    color:#94a3b8;
    font-size:9px;
}

.source-badge {
    display:inline-flex;
    align-items:center;
    padding:5px 9px;
    border-radius:999px;
    font-size:9px;
    font-weight:750;
}

.source-badge.manual {
    color:#3730a3;
    background:#eef2ff;
}

.source-badge.import {
    color:#0369a1;
    background:#ecfeff;
}

.module-textarea {
    width:100%;
    resize:vertical;
    min-height:130px;
    padding:13px 14px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    outline:none;
    background:white;
    color:#0f172a;
    font:inherit;
    font-size:13px;
    line-height:1.65;
    transition:
        border-color .2s,
        box-shadow .2s;
}

.module-textarea:focus {
    border-color:#818cf8;
    box-shadow:
        0 0 0 4px
        rgba(99,102,241,.08);
}

.normalized-preview {
    padding:16px;
    border:1px solid #e0e7ff;
    border-radius:14px;
    background:
        linear-gradient(
            135deg,
            #f8faff,
            #f8fafc
        );
}

.normalized-label {
    color:#6366f1;
    font-size:9px;
    font-weight:800;
    letter-spacing:.12em;
}

.normalized-value {
    margin-top:8px;
    color:#334155;
    font-size:11px;
    line-height:1.65;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.empty-icon {
    margin-bottom:8px;
    font-size:25px;
}

@media(max-width:1250px) {
    .title-filter-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

    .title-search {
        grid-column:span 3;
    }
}

@media(max-width:700px) {
    .title-stats {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .title-filter-grid {
        grid-template-columns:1fr;
    }

    .title-search {
        grid-column:span 1;
    }

    .header-actions {
        width:100%;
    }

    .header-actions .btn {
        flex:1;
    }
}

/* SIMJUD TITLES MODULE END */


/* SIMJUD IMPORT MODULE START */

.import-layout {
    display:grid;
    grid-template-columns:
        1.1fr .9fr;
    gap:18px;
    margin-bottom:20px;
}

.import-step-badge {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:13px;
    color:#4338ca;
    background:#eef2ff;
    font-size:12px;
    font-weight:800;
}

.upload-zone {
    min-height:225px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:28px;
    border:2px dashed #c7d2fe;
    border-radius:18px;
    background:
        linear-gradient(
            135deg,
            #fafaff,
            #f8fafc
        );
    text-align:center;
    cursor:pointer;
    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.upload-zone:hover {
    border-color:#6366f1;
    background:#f7f7ff;
    transform:translateY(-2px);
}

.upload-zone input {
    margin-top:12px;
    max-width:100%;
}

.upload-zone strong {
    color:#1e293b;
    font-size:14px;
}

.upload-zone span {
    color:#94a3b8;
    font-size:11px;
}

.upload-icon {
    width:58px;
    height:58px;
    display:grid;
    place-items:center;
    border-radius:17px;
    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #06b6d4
        );
    color:white;
    font-size:24px;
    box-shadow:
        0 12px 30px
        rgba(79,70,229,.22);
}

.import-upload-button {
    width:100%;
    margin-top:14px;
}

.field-error {
    color:#be123c;
    font-size:11px;
    margin-top:7px;
}

.template-columns {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.template-columns span {
    padding:6px 9px;
    border-radius:8px;
    color:#3730a3;
    background:#eef2ff;
    font-size:10px;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        monospace;
}

.import-note {
    margin:17px 0;
    color:#64748b;
    font-size:12px;
    line-height:1.7;
}

.template-button {
    width:100%;
}

.import-limit-note {
    display:flex;
    flex-direction:column;
    gap:5px;
    margin-top:17px;
    padding:13px 14px;
    border-radius:12px;
    background:#fffbeb;
    border:1px solid #fef3c7;
}

.import-limit-note strong {
    color:#92400e;
    font-size:11px;
}

.import-limit-note span {
    color:#a16207;
    font-size:10px;
    line-height:1.55;
}

.import-history {
    margin-top:0;
}

.import-status {
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    font-size:9px;
    font-weight:750;
}

.import-status.completed {
    color:#047857;
    background:#ecfdf5;
}

.import-status.processing {
    color:#92400e;
    background:#fffbeb;
}

.import-status.failed {
    color:#be123c;
    background:#fff1f2;
}

.number-success {
    color:#047857;
    font-weight:750;
}

.number-warning {
    color:#b45309;
    font-weight:750;
}

.number-danger {
    color:#be123c;
    font-weight:750;
}

.import-summary {
    margin-bottom:20px;
    padding:20px;
    border-radius:18px;
    background:white;
    border:1px solid #d1fae5;
    box-shadow:var(--shadow-sm);
}

.import-summary-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    margin-bottom:17px;
}

.import-result-grid {
    display:grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap:10px;
}

.import-result-grid > div {
    padding:14px;
    border-radius:12px;
    background:#f8fafc;
}

.import-result-grid span,
.import-result-grid strong {
    display:block;
}

.import-result-grid span {
    color:#64748b;
    font-size:9px;
}

.import-result-grid strong {
    margin-top:5px;
    font-size:22px;
}

.import-result-grid .result-success {
    background:#ecfdf5;
    color:#047857;
}

.import-result-grid .result-warning {
    background:#fffbeb;
    color:#b45309;
}

.import-result-grid .result-danger {
    background:#fff1f2;
    color:#be123c;
}

.import-errors {
    margin-top:15px;
    color:#475569;
    font-size:11px;
}

.import-errors summary {
    cursor:pointer;
    font-weight:700;
}

.import-errors ul {
    line-height:1.7;
}

.import-file-info {
    display:grid;
    grid-template-columns:
        auto 1fr auto;
    align-items:center;
    gap:13px;
    padding:16px 18px;
    margin-bottom:18px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:white;
    box-shadow:var(--shadow-sm);
}

.file-type-icon {
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:13px;
    color:#3730a3;
    background:#eef2ff;
    font-size:10px;
    font-weight:850;
}

.import-file-info strong,
.import-file-info span {
    display:block;
}

.import-file-info strong {
    font-size:12px;
}

.import-file-info span {
    margin-top:4px;
    color:#64748b;
    font-size:10px;
}

.import-file-status {
    color:#047857;
    font-size:10px;
    font-weight:700;
}

.mapping-card {
    margin-bottom:18px;
}

.mapping-grid {
    display:grid;
    grid-template-columns:
        repeat(5, minmax(0,1fr));
    gap:12px;
}

.mapping-field label {
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-size:10px;
    font-weight:700;
}

.mapping-field label span {
    color:#ef4444;
}

.mapping-field small {
    display:block;
    margin-top:5px;
    color:#94a3b8;
    font-size:9px;
    line-height:1.45;
}

.mapping-defaults {
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:12px;
    margin-top:17px;
    padding-top:17px;
    border-top:1px solid #f1f5f9;
}

.import-active-switch {
    margin-top:18px;
}

.duplicate-policy {
    display:flex;
    gap:12px;
    align-items:flex-start;
    margin-top:14px;
    padding:14px;
    border-radius:13px;
    background:#f8fafc;
    border:1px solid #e2e8f0;
}

.duplicate-icon {
    width:35px;
    height:35px;
    flex:0 0 auto;
    display:grid;
    place-items:center;
    border-radius:10px;
    color:#0369a1;
    background:#e0f2fe;
}

.duplicate-policy strong {
    font-size:11px;
}

.duplicate-policy p {
    margin:4px 0 0;
    color:#64748b;
    font-size:10px;
    line-height:1.6;
}

.preview-card {
    margin-bottom:18px;
}

.preview-count {
    padding:6px 9px;
    color:#4338ca;
    background:#eef2ff;
    border-radius:999px;
    font-size:9px;
    font-weight:750;
}

.import-preview-table {
    min-width:1000px;
}

.import-preview-table td {
    max-width:250px;
    line-height:1.5;
}

.import-confirm-bar {
    position:sticky;
    bottom:16px;
    z-index:30;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:
        rgba(255,255,255,.95);
    backdrop-filter:blur(14px);
    box-shadow:
        0 15px 45px
        rgba(15,23,42,.12);
}

.import-confirm-bar strong,
.import-confirm-bar span {
    display:block;
}

.import-confirm-bar strong {
    font-size:12px;
}

.import-confirm-bar span {
    margin-top:3px;
    color:#64748b;
    font-size:9px;
}

@media(max-width:1100px) {
    .import-layout {
        grid-template-columns:1fr;
    }

    .mapping-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media(max-width:700px) {
    .import-result-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .mapping-grid,
    .mapping-defaults {
        grid-template-columns:1fr;
    }

    .import-file-info {
        grid-template-columns:
            auto 1fr;
    }

    .import-file-status {
        grid-column:span 2;
    }

    .import-confirm-bar {
        position:relative;
        bottom:auto;
        flex-direction:column;
        align-items:stretch;
    }
}

/* SIMJUD IMPORT MODULE END */

