/* ==========================================================================
   JEMBER DIGITAL IDENTITY (JDI) - CORE STYLESHEET SYSTEM
   Pemerintah Kabupaten Jember (Diskominfo)
   ========================================================================== */

:root {
    --primary: #003098;
    --primary-hover: #00216b;
    --primary-bright: #0044cc;
    --midnight-topbar: #001a52;
    --midnight-darker: #00123a;
    --secondary: #006c49;
    --sky-accent: #0ea5e9;
    --sky-bright: #38bdf8;
    --surface: #f8f9fa;
    --surface-low: #f3f4f5;
    --border-subtle: #e1e3e4;
    --text-dark: #191c1d;
    --text-muted: #434654;
    --danger: #ba1a1a;
}

/* Background Pattern Dot Halus */
.bg-pattern-dot {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Diagonal Slanted Dividers */
.slanted-brand {
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.slanted-divider {
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Header, Navbar & Topbar Custom Styles */
.header-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.brand-slanted-box {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    background-color: var(--primary);
    color: #ffffff;
    padding-left: 1.5rem;
    padding-right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    width: 330px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.topbar-bg {
    background-color: var(--midnight-topbar);
    color: #e2e8f0;
    font-size: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 33, 107, 0.5);
}

.navbar-bg {
    background-color: #ffffff;
    height: 4rem;
}

/* ==========================================================================
   ADMIN SIDEBAR & DASHBOARD SYSTEM STYLES
   ========================================================================== */

.admin-sidebar {
    width: 16rem; /* 64 (256px) */
    background-color: #ffffff;
    color: var(--text-dark);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    border-right: 1px solid var(--border-subtle);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-sidebar-header {
    height: 5rem; /* 80px */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-user {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav-item:hover {
    background-color: var(--surface-low);
    color: var(--primary);
}

.admin-nav-item.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.admin-nav-item.active i {
    color: #ffffff !important;
}

.admin-header {
    height: 5rem;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.admin-content-area {
    flex-grow: 1;
    padding-left: 16rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer Custom Styles */
.footer-bg {
    background-color: var(--midnight-topbar);
    color: #ffffff;
    border-top: 1px solid rgba(0, 33, 107, 0.6);
}

.footer-bottom-bg {
    background-color: var(--midnight-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
