:root {
    --brand-orange: #e57f22;
    --brand-orange-soft: #f39b3c;
    --brand-dark: #222831;
    --brand-dark-soft: #343a46;
    --brand-light: #f8f5f0;
    --brand-muted: #6c757d;
    --brand-card: #ffffff;
    --brand-border: #ece5dc;
}

body {
    background: linear-gradient(180deg, #fff8f1 0%, #f8f5f0 100%);
    color: var(--brand-dark);
    min-height: 100vh;
}

.navbar-brand,
.brand-title {
    font-weight: 700;
    letter-spacing: .3px;
}

.topbar-custom {
    background: linear-gradient(90deg, var(--brand-dark) 0%, #2f3640 45%, var(--brand-orange) 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card-custom {
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(34,40,49,.06);
}

.hero-panel {
    background: linear-gradient(135deg, rgba(229,127,34,.95), rgba(47,54,64,.96));
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    position: relative;
}

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

.hero-panel .hero-icon {
    font-size: 3rem;
    opacity: .92;
}

.btn-brand {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #d66f12;
    border-color: #d66f12;
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.btn-outline-brand:hover {
    background: var(--brand-orange);
    color: #fff;
}

.section-title {
    font-weight: 700;
    color: var(--brand-dark);
}

.stat-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(34,40,49,.06);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.lab-card {
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(34,40,49,.10);
}

.lab-badge {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
}

.table thead th {
    background: #fff1e1;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--brand-border);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(229,127,34,.45);
    box-shadow: 0 0 0 .25rem rgba(229,127,34,.15);
}

.login-wrapper {
    min-height: 100vh;
}

.auth-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(34,40,49,.12);
}

.auth-side {
    background: url('../images/gedung_kampus.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    position: relative;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

.auth-side > div {
    display: none;
}

.auth-side .feature-item {
    display: none;
}

.footer-note,
.small-muted {
    color: var(--brand-muted);
    font-size: .92rem;
}

.badge-soft-orange {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
}

.action-link {
    text-decoration: none;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f8f5f0;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #222831 0%, #2e3540 58%, #e57f22 100%);
    color: #fff;
    padding: 22px;
    position: fixed;
    min-height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    font-size: 1.25rem;
}

.brand-main {
    font-weight: 800;
    font-size: 1.05rem;
}

.brand-sub {
    font-size: .82rem;
    opacity: .75;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user small {
    opacity: .75;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.sidebar-menu a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 15px;
    transition: all .2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #fff;
    background: rgba(255,255,255,.16);
    transform: translateX(3px);
}

.sidebar-menu a i {
    width: 22px;
}

.sidebar-footer {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
}

.admin-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 26px;
}

.admin-topbar {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(34,40,49,.05);
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar small {
    color: var(--brand-muted);
}

.admin-topbar-badge {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
        border-radius: 0 0 22px 22px;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

    .sidebar-footer {
        position: static;
        margin-top: 18px;
    }
}

@media (max-width: 767.98px) {
    .hero-panel { border-radius: 18px; }
    .auth-side { display: none; }
}


.auth-side .campus-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
}


.auth-image-fill {
    min-height: 100%;
    width: 100%;
}

@media (max-width: 767.98px) {
    .auth-side {
        display: none !important;
    }
}


/* ===============================
   Elegant Campus Image UI Upgrade
   =============================== */

.auth-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(34,40,49,.18);
    border: 1px solid rgba(255,255,255,.55);
}

.auth-side {
    background:
        linear-gradient(180deg, rgba(20, 22, 28, .05), rgba(20, 22, 28, .16)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 720px;
    position: relative;
}

.auth-side::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.auth-side > div {
    display: none !important;
}

.auth-form-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-form-logo img {
    max-width: 270px;
    width: 82%;
    height: auto;
}

.auth-form-panel {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(34,40,49,.06);
}

.auth-page-note {
    background: linear-gradient(90deg, rgba(229,127,34,.10), rgba(34,40,49,.06));
    border: 1px solid rgba(229,127,34,.18);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--brand-muted);
    font-size: .9rem;
}

/* Hero dashboard with campus image theme */
.hero-panel {
    background:
        linear-gradient(135deg, rgba(229,127,34,.92), rgba(34,40,49,.94)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(34,40,49,.12);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.20), transparent 36%),
        linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.08));
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.campus-mini-logo {
    height: 54px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.dashboard-campus-card {
    background:
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,248,241,.94));
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(34,40,49,.08);
}

.navbar-logo-mini {
    height: 34px;
    width: auto;
    background: rgba(255,255,255,.90);
    border-radius: 10px;
    padding: 3px 6px;
    margin-right: 8px;
}

.admin-topbar {
    background:
        linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,241,225,.92));
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(34,40,49,.96), rgba(34,40,49,.94) 54%, rgba(229,127,34,.96)),
        url('../images/gedung_kampus.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 991.98px) {
    .auth-side {
        min-height: 360px;
        display: block !important;
    }

    .auth-side::after {
        inset: 12px;
        border-radius: 18px;
    }
}

@media (max-width: 767.98px) {
    .auth-side {
        min-height: 300px;
        display: block !important;
    }

    .auth-form-panel {
        padding: 18px;
    }
}



/* Update: panel kiri login/register memakai gambar gedung_kampus.png */
.auth-side {
    background:
        linear-gradient(180deg, rgba(20, 22, 28, .04), rgba(20, 22, 28, .14)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 720px;
    position: relative;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent !important;
    pointer-events: none;
}

.auth-side::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 24px;
    pointer-events: none;
}

.auth-side > div {
    display: none !important;
}
