:root {
    --brand-color: #771414;
    --brand-hover: #590f0f;
    --bg-light: #f8fafc;
}

/* Base Body untuk Seluruh Admin & Login */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: #334155;
    min-height: 100vh;
    margin: 0; /* Reset margin bawaan browser */
}

/* ==========================================
   1. STYLING KHUSUS HALAMAN LOGIN (ISOLATED)
   ========================================== */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(119, 20, 20, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    background: #ffffff;
}

.input-group-text {
    background-color: transparent;
}


/* ==========================================
   2. STYLING UTAMA DASHBOARD ADMIN
   ========================================== */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.admin-main {
    margin-left: 260px;
    padding: 20px;
}

@media (max-width: 991.98px) {
    .admin-sidebar { margin-left: -260px; }
    .admin-sidebar.active { margin-left: 0; }
    .admin-main { margin-left: 0; }
}

.nav-link-admin {
    color: #64748b;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-link-admin:hover, 
.nav-link-admin.active {
    background-color: rgba(119, 20, 20, 0.08);
    color: var(--brand-color);
}

.card-stat {
    border: none;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.icon-stat {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}


/* ==========================================
   3. REUSABLE UTILITIES (SHARED)
   ========================================== */
.bg-brand { background-color: var(--brand-color) !important; }
.text-brand { color: var(--brand-color) !important; }

.btn-brand {
    background-color: var(--brand-color);
    color: #ffffff;
    border: none;
    transition: all 0.2s ease-in-out;
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.form-control:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.25rem rgba(119, 20, 20, 0.15);
}


::selection {
    background-color: #771414 !important;
    color: #ffffff !important;
}
::-moz-selection {
    background-color: #771414 !important;
    color: #ffffff !important;
}

a::selection {
    background-color: #771414 !important;
    color: #ffffff !important;
}
a::-moz-selection {
    background-color: #771414 !important;
    color: #ffffff !important;
}

a {
    color: #771414;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:hover {
    color: #590f0f;
}

.cursor-pointer { cursor: pointer; }
.drop-zone {
    border-color: #cbd5e1 !important;
    transition: all 0.25s ease-in-out;
}

.drop-zone.drag-over {
    background-color: #e0f2fe !important;
    border-color: #0284c7 !important;
    transform: scale(1.01);
}
.hover-opacity-100:hover { opacity: 1 !important; }
.opacity-0 { opacity: 0; }
.transition-all { transition: all 0.2s ease-in-out; }
.fs-8 { font-size: 0.825rem; }
.fs-9 { font-size: 0.75rem; }

.hover-border-brand:hover { border-color: #0284c7 !important; transform: scale(1.02); transition: all 0.2s; }

.note-editor.note-frame {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    z-index: 1000;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.admin-sidebar nav::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar nav::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

@media (min-width: 992px) {
    .admin-main {
        margin-left: 260px;
        min-height: 100vh;
        background-color: #f8fafc;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        margin-left: -260px;
    }
    .admin-sidebar.show {
        margin-left: 0;
    }
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
}