:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-soft: rgba(16, 185, 129, 0.12);

    --secondary: #0F172A;
    --accent: #F59E0B;

    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-soft: #F1F5F9;

    --text: #0F172A;
    --muted: #64748B;
    --muted-2: #94A3B8;

    --border: #E2E8F0;
    --border-soft: rgba(148, 163, 184, 0.25);

    --danger: #EF4444;
    --success: #22C55E;
    --warning: #F59E0B;
    --info: #3B82F6;
    --purple: #8B5CF6;

    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 50px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.18);

    --sidebar-width: 292px;
    --topbar-height: 82px;
    --radius: 24px;
}

html[data-theme="dark"] {
    --bg: #020617;
    --surface: #0F172A;
    --surface-soft: #111827;
    --text: #E5E7EB;
    --muted: #94A3B8;
    --muted-2: #64748B;
    --border: rgba(148, 163, 184, 0.18);
    --border-soft: rgba(148, 163, 184, 0.16);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.11), transparent 30%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.10), transparent 32%),
        var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.admin-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(6, 78, 59, 0.94)),
        #0F172A;
    color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 60;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.brand-link:hover {
    color: white;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 18px 40px rgba(16,185,129,0.35);
    font-size: 23px;
}

.brand-text strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.brand-text small {
    color: rgba(255,255,255,0.62);
    font-size: 12px;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 14px;
    background: rgba(255,255,255,0.10);
    color: white;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.11);
    margin-bottom: 22px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: rgba(16,185,129,0.22);
    color: #A7F3D0;
    font-weight: 900;
}

.sidebar-user-info strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
}

.sidebar-user-info small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.58);
    font-size: 12px;
}

.menu-section {
    margin-bottom: 20px;
}

.menu-section-title {
    display: block;
    padding: 0 12px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-menu {
    display: block;
}

.menu-item {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    font-weight: 800;
    transition: 0.18s ease;
}

.menu-item:hover {
    color: white;
    background: rgba(255,255,255,0.08);
}

.menu-item.active {
    color: white;
    background: rgba(16,185,129,0.18);
    box-shadow: inset 0 0 0 1px rgba(16,185,129,0.18);
}

.menu-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.menu-item.active .menu-icon {
    background: rgba(16,185,129,0.24);
    color: #A7F3D0;
}

.menu-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: var(--danger);
    font-size: 11px;
    font-weight: 900;
}

.menu-logout {
    color: #FCA5A5;
}

.sidebar-overlay {
    display: none;
}

/* MAIN */

.admin-main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
}

.admin-topbar {
    min-height: var(--topbar-height);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248,250,252,0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
}

html[data-theme="dark"] .admin-topbar {
    background: rgba(2, 6, 23, 0.82);
}

.topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-size: 24px;
}

.breadcrumb-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.breadcrumb-line a {
    color: var(--primary-dark);
    font-weight: 900;
}

.breadcrumb-line i {
    font-size: 11px;
    color: var(--muted-2);
}

.topbar-left h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.055em;
    color: var(--text);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-icon-btn {
    position: relative;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-size: 18px;
}

.topbar-icon-btn:hover {
    color: var(--primary-dark);
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 11px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--danger);
}

.profile-dropdown {
    position: relative;
}

.profile-btn {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 5px 10px 5px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 900;
}

.profile-info {
    text-align: left;
}

.profile-info strong {
    display: block;
    font-size: 13px;
    line-height: 1.1;
}

.profile-info span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.profile-chevron {
    color: var(--muted);
    font-size: 13px;
}

.profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.18s ease;
    z-index: 90;
}

.profile-dropdown.open .profile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.profile-menu a:hover {
    background: var(--surface-soft);
}

.profile-menu a.danger {
    color: var(--danger);
}

.profile-divider {
    height: 1px;
    background: var(--border);
    margin: 7px 4px;
}

/* CONTENT */

.admin-content {
    padding: 28px;
}

.custom-alert {
    margin-bottom: 20px;
    padding: 15px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
}

.custom-alert-icon {
    font-size: 18px;
    line-height: 1;
}

.custom-alert-success {
    background: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
}

.custom-alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.custom-alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FDE68A;
}

.custom-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-color: #BFDBFE;
}

html[data-theme="dark"] .custom-alert-success {
    background: rgba(34,197,94,0.14);
    color: #86EFAC;
    border-color: rgba(34,197,94,0.22);
}

html[data-theme="dark"] .custom-alert-danger {
    background: rgba(239,68,68,0.14);
    color: #FCA5A5;
    border-color: rgba(239,68,68,0.22);
}

html[data-theme="dark"] .custom-alert-warning {
    background: rgba(245,158,11,0.14);
    color: #FCD34D;
    border-color: rgba(245,158,11,0.22);
}

html[data-theme="dark"] .custom-alert-info {
    background: rgba(59,130,246,0.14);
    color: #93C5FD;
    border-color: rgba(59,130,246,0.22);
}

/* DASHBOARD */

.page-header-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(16,185,129,0.35), transparent 36%),
        linear-gradient(135deg, #0F172A, #064E3B);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

.page-header-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.5;
}

.page-header-card > * {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    color: #A7F3D0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-header-card h2 {
    margin: 0;
    max-width: 720px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.page-header-card p {
    margin: 12px 0 0;
    max-width: 720px;
    color: rgba(255,255,255,0.74);
    line-height: 1.7;
}

.header-action-group {
    align-self: flex-end;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 900;
    border: none;
    text-decoration: none;
    transition: 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 16px 35px rgba(16,185,129,0.28);
}

.btn-primary:hover {
    color: white;
}

.btn-light {
    background: rgba(255,255,255,0.92);
    color: #0F172A;
}

.btn-light:hover {
    color: #0F172A;
}

.btn-soft {
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.stat-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.green {
    color: #047857;
    background: rgba(16,185,129,0.14);
}

.stat-icon.blue {
    color: #1D4ED8;
    background: rgba(59,130,246,0.13);
}

.stat-icon.orange {
    color: #B45309;
    background: rgba(245,158,11,0.15);
}

.stat-icon.purple {
    color: #6D28D9;
    background: rgba(139,92,246,0.14);
}

.stat-card p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.stat-card strong {
    display: block;
    color: var(--text);
    font-size: 32px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 18px;
}

.panel-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel-card.large {
    min-height: 320px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.panel-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.summary-list {
    display: grid;
    gap: 12px;
}

.summary-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.summary-item strong {
    display: block;
    color: var(--text);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.summary-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.badge {
    min-height: 26px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge-success {
    color: #166534;
    background: #DCFCE7;
}

.badge-info {
    color: #1E40AF;
    background: #DBEAFE;
}

.badge-warning {
    color: #92400E;
    background: #FEF3C7;
}

.badge-danger {
    color: #991B1B;
    background: #FEE2E2;
}

html[data-theme="dark"] .badge-success {
    color: #86EFAC;
    background: rgba(34,197,94,0.14);
}

html[data-theme="dark"] .badge-info {
    color: #93C5FD;
    background: rgba(59,130,246,0.14);
}

html[data-theme="dark"] .badge-warning {
    color: #FCD34D;
    background: rgba(245,158,11,0.14);
}

html[data-theme="dark"] .badge-danger {
    color: #FCA5A5;
    background: rgba(239,68,68,0.14);
}

.quick-actions {
    display: grid;
    gap: 10px;
}

.quick-actions a {
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quick-actions a::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    color: var(--muted);
    font-size: 13px;
}

.quick-actions a:hover {
    border-color: rgba(16,185,129,0.4);
    color: var(--primary-dark);
}

/* TABLE */

.table-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-card-header {
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border);
}

.table-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.table-card-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.admin-table th {
    padding: 14px 18px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 950;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 15px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(16,185,129,0.035);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: var(--surface);
    color: var(--muted);
}

.action-btn:hover {
    color: var(--primary-dark);
    border-color: rgba(16,185,129,0.4);
}

.action-btn.danger:hover {
    color: var(--danger);
    border-color: rgba(239,68,68,0.4);
}

/* FORMS */

.form-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background-color: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(16,185,129,0.55);
    box-shadow: 0 0 0 5px rgba(16,185,129,0.12);
    background-color: var(--surface);
    color: var(--text);
}

textarea.form-control {
    padding-top: 13px;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* EMPTY STATE */

.empty-state {
    padding: 42px 24px;
    text-align: center;
}

.empty-state i {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 14px;
}

.empty-state h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
    color: var(--text);
}

.empty-state p {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--muted);
    line-height: 1.6;
}

/* MOBILE BOTTOM */

.mobile-bottom-nav {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-110%);
        transition: 0.22s ease;
        box-shadow: var(--shadow-lg);
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
        place-items: center;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15,23,42,0.45);
        opacity: 0;
        visibility: hidden;
        transition: 0.2s ease;
        z-index: 55;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        width: 100%;
    }

    .mobile-menu-btn {
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .admin-content {
        padding: 20px 16px 98px;
    }

    .admin-topbar {
        padding: 14px 16px;
    }

    .topbar-left h1 {
        font-size: 24px;
    }

    .profile-info,
    .profile-chevron {
        display: none;
    }

    .profile-btn {
        padding: 5px;
    }

    .page-header-card {
        flex-direction: column;
        padding: 24px;
        border-radius: 28px;
    }

    .page-header-card h2 {
        font-size: 28px;
    }

    .header-action-group {
        align-self: flex-start;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 72px;
        padding: 8px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 24px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(18px);
        box-shadow: 0 20px 55px rgba(15,23,42,0.35);
        z-index: 70;
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 18px;
        color: rgba(255,255,255,0.62);
        font-size: 11px;
        font-weight: 850;
    }

    .mobile-bottom-nav a i {
        font-size: 18px;
    }

    .mobile-bottom-nav a.active {
        color: white;
        background: rgba(16,185,129,0.22);
    }
}

@media (max-width: 680px) {
    .topbar-actions {
        gap: 7px;
    }

    .topbar-icon-btn,
    .mobile-menu-btn {
        width: 43px;
        height: 43px;
        border-radius: 15px;
    }

    .admin-topbar {
        align-items: flex-start;
    }

    .breadcrumb-line {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-radius: 24px;
    }

    .content-grid {
        gap: 14px;
    }

    .panel-card,
    .table-card,
    .form-card {
        border-radius: 24px;
    }

    .table-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .page-header-card h2 {
        font-size: 25px;
    }

    .page-header-card p {
        font-size: 14px;
    }

    .header-action-group {
        width: 100%;
    }

    .header-action-group .btn {
        flex: 1;
    }
}

@media (max-width: 420px) {
    .admin-sidebar {
        width: min(90vw, var(--sidebar-width));
        padding: 18px;
    }

    .admin-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-header-card {
        padding: 20px;
    }

    .stat-card {
        padding: 18px;
    }

    .panel-card {
        padding: 18px;
    }
}
.swal-premium-popup {
    border-radius: 28px !important;
    padding: 28px !important;
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28) !important;
}

.swal-premium-title {
    font-size: 24px !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    color: var(--text) !important;
}

.swal-premium-text {
    color: var(--muted) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.swal-premium-confirm {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.32);
}
.swal-premium-cancel {
    min-height: 46px;
    padding: 0 22px;
    border: none;
    border-radius: 16px;
    background: #E2E8F0;
    color: #0F172A;
    font-weight: 900;
}

.swal-danger-confirm {
    background: linear-gradient(135deg, #EF4444, #B91C1C) !important;
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.32) !important;
}

.swal-loading-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #DC2626;
}
.filter-card {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
    gap: 14px;
    align-items: end;
}

.filter-actions .btn {
    white-space: nowrap;
}

.table-main-text {
    font-weight: 950;
    color: var(--text);
}

.table-sub-text {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.table-actions form {
    margin: 0;
}

.mobile-card-list {
    display: none;
}

.mobile-data-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.mobile-data-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-data-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: var(--text);
}

.mobile-data-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.mobile-data-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mobile-data-body div {
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.mobile-data-body span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.mobile-data-body strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
}

.mobile-data-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.mobile-data-actions .btn {
    flex: 1;
}

@media (max-width: 980px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .table-card > .table-responsive {
        display: none;
    }

    .mobile-card-list {
        display: grid;
        gap: 14px;
        padding: 16px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions .d-flex {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .mobile-data-body {
        grid-template-columns: 1fr;
    }

    .mobile-data-actions {
        flex-direction: column;
    }
}
.btn-spinner-small {
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 3px solid rgba(255,255,255,0.35);
    border-top-color: #FFFFFF;
    border-radius: 999px;
    animation: btnSpinSmall 0.8s linear infinite;
}

@keyframes btnSpinSmall {
    to {
        transform: rotate(360deg);
    }
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface-soft);
}

.detail-item.full {
    grid-column: 1 / -1;
}

.detail-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.detail-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 680px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-item {
        border-radius: 18px;
    }
}
.kitchen-filter-grid {
    grid-template-columns: 1.6fr 0.7fr auto;
}

@media (max-width: 980px) {
    .kitchen-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .kitchen-filter-grid {
        grid-template-columns: 1fr;
    }
}
.map-action-box {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-soft);
}

.map-action-box h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 950;
    color: var(--text);
    letter-spacing: -0.03em;
}

.map-action-box p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.map-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-action-buttons .btn {
    flex: 1;
    min-width: 180px;
}

.map-help-text {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 680px) {
    .map-action-buttons {
        flex-direction: column;
    }

    .map-action-buttons .btn {
        width: 100%;
    }
}
.map-picker-box {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-soft);
}

.map-picker-box h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 950;
    color: var(--text);
    letter-spacing: -0.03em;
}

.map-picker-box p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.map-search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-bottom: 14px;
}

.map-picker {
    width: 100%;
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #E2E8F0;
}

.map-picker-help {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.leaflet-container {
    font-family: Inter, system-ui, sans-serif;
}

@media (max-width: 760px) {
    .map-search-row {
        grid-template-columns: 1fr;
    }

    .map-search-row .btn {
        width: 100%;
    }

    .map-picker {
        height: 320px;
    }
}
.mobile-delete-form {
    flex: 1;
    margin: 0;
}

.mobile-delete-form .btn {
    width: 100%;
}

@media (max-width: 420px) {
    .mobile-data-actions {
        flex-direction: column;
    }

    .mobile-delete-form {
        width: 100%;
    }
}
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #F59E0B;
    font-size: 14px;
}
.rating-stars-lg {
    font-size: 16px;
    margin-right: 8px;
}

.rating-number {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}
.ingredient-filter-grid {
    grid-template-columns: 1.5fr 0.8fr 1fr 0.7fr auto;
}

@media (max-width: 1180px) {
    .ingredient-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ingredient-filter-grid {
        grid-template-columns: 1fr;
    }
}
.stock-filter-grid {
    grid-template-columns: 1.2fr 1.3fr 0.8fr 0.8fr 0.8fr auto;
}

.mobile-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.mobile-note span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.mobile-note p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .stock-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .stock-filter-grid {
        grid-template-columns: 1fr;
    }
}
.stock-warning-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: var(--text);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.stock-warning-box i {
    font-size: 22px;
    color: #D97706;
    line-height: 1;
    margin-top: 2px;
}

.stock-warning-box strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 4px;
}

.stock-warning-box p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.stock-filter-grid {
    grid-template-columns: 1.2fr 1.3fr 0.8fr 0.8fr 0.8fr auto;
}

.mobile-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.mobile-note span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.mobile-note p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .stock-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .stock-filter-grid {
        grid-template-columns: 1fr;
    }
}
.beneficiary-filter-grid {
    grid-template-columns: 1.4fr 1.3fr 0.8fr 0.7fr auto;
}

@media (max-width: 1180px) {
    .beneficiary-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .beneficiary-filter-grid {
        grid-template-columns: 1fr;
    }
}
.menu-filter-grid {
    grid-template-columns: 1.2fr 1.2fr 0.7fr 0.8fr 0.8fr auto;
}

@media (max-width: 1280px) {
    .menu-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .menu-filter-grid {
        grid-template-columns: 1fr;
    }
}
.menu-preview-box {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.menu-preview-box h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 950;
    color: var(--text);
}

.menu-preview-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-preview-box li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.menu-preview-box li:last-child {
    border-bottom: none;
}

.menu-preview-box strong {
    color: var(--text);
}
.menu-component-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.menu-component-card {
    padding: 16px;
    border-radius: 22px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.menu-component-card i {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 20px;
    margin-bottom: 14px;
}

.menu-component-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.menu-component-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.45;
}

@media (max-width: 1180px) {
    .menu-component-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .menu-component-grid {
        grid-template-columns: 1fr;
    }
}
.menu-ingredient-filter-grid {
    grid-template-columns: 1.2fr 1.2fr 1.1fr 0.8fr auto;
}

@media (max-width: 1180px) {
    .menu-ingredient-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .menu-ingredient-filter-grid {
        grid-template-columns: 1fr;
    }
}
.production-filter-grid {
    grid-template-columns: 1.2fr 1.1fr 1.1fr 0.8fr 0.8fr 0.8fr auto;
}

.mini-progress {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.mini-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #10B981, #059669);
}

@media (max-width: 1320px) {
    .production-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .production-filter-grid {
        grid-template-columns: 1fr;
    }
}
.distribution-filter-grid {
    grid-template-columns: 1.2fr 1.1fr 1.1fr 1.1fr 0.8fr 0.7fr 0.7fr auto;
}

@media (max-width: 1380px) {
    .distribution-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .distribution-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .distribution-filter-grid {
        grid-template-columns: 1fr;
    }
}
.confirmation-filter-grid {
    grid-template-columns: 1.2fr 1.1fr 1.2fr 0.8fr 0.7fr 0.7fr auto;
}

.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #F59E0B;
    font-size: 14px;
}

@media (max-width: 1320px) {
    .confirmation-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .confirmation-filter-grid {
        grid-template-columns: 1fr;
    }
}
.complaint-filter-grid {
    grid-template-columns: 1.2fr 1.1fr 1.1fr 1.1fr 1fr 0.8fr 0.8fr 0.7fr 0.7fr auto;
}

@media (max-width: 1500px) {
    .complaint-filter-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .complaint-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .complaint-filter-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================
   REPORT PAGE PREMIUM STYLE
================================ */

.report-filter-grid {
    grid-template-columns: 220px 220px 220px 220px auto;
    align-items: end;
    gap: 14px;
}

.report-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.report-shortcut-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 158px;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    color: #0f172a;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow:
        0 16px 35px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255,255,255,.8);
    transition: all .22s ease;
}

.report-shortcut-card::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -48px;
    top: -48px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .11);
}

.report-shortcut-card::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: 20px;
    bottom: -42px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .08);
}

.report-shortcut-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, .35);
    box-shadow:
        0 22px 45px rgba(15, 23, 42, .12),
        inset 0 1px 0 rgba(255,255,255,.9);
    color: #0f172a;
}

.report-shortcut-card i {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    font-size: 22px;
    box-shadow: 0 10px 18px rgba(34, 197, 94, .16);
}

.report-shortcut-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.report-shortcut-card span {
    position: relative;
    z-index: 2;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

/* Biar 4 shortcut punya warna icon beda-beda */
.report-shortcut-card:nth-child(1) i {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
    box-shadow: 0 10px 18px rgba(249, 115, 22, .15);
}

.report-shortcut-card:nth-child(1)::before {
    background: rgba(249, 115, 22, .10);
}

.report-shortcut-card:nth-child(2) i {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
    box-shadow: 0 10px 18px rgba(37, 99, 235, .15);
}

.report-shortcut-card:nth-child(2)::before {
    background: rgba(37, 99, 235, .10);
}

.report-shortcut-card:nth-child(3) i {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
    box-shadow: 0 10px 18px rgba(22, 163, 74, .15);
}

.report-shortcut-card:nth-child(3)::before {
    background: rgba(22, 163, 74, .10);
}

.report-shortcut-card:nth-child(4) i {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    box-shadow: 0 10px 18px rgba(220, 38, 38, .15);
}

.report-shortcut-card:nth-child(4)::before {
    background: rgba(220, 38, 38, .10);
}

/* Report page table spacing */
.table-card.mb-4 {
    margin-bottom: 24px;
}

.table-card.mt-4,
.stats-grid.mt-4,
.content-grid.mt-4,
.report-shortcut-grid.mt-4 {
    margin-top: 24px;
}

/* Supaya filter laporan tidak melebar aneh */
.report-filter-grid .form-group {
    min-width: 0;
}

.report-filter-grid .filter-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.report-filter-grid .filter-actions .btn {
    min-height: 42px;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 1280px) {
    .report-shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-filter-grid .filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .report-shortcut-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .report-shortcut-card {
        min-height: 140px;
        padding: 18px;
        border-radius: 18px;
    }

    .report-shortcut-card i {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 12px;
    }

    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-grid .filter-actions .d-flex {
        width: 100%;
        flex-direction: column;
    }

    .report-filter-grid .filter-actions .btn {
        width: 100%;
    }
}
/* =========================================================
   GLOBAL ADMIN UI FIX - MOBILE & DESKTOP CLEAN OVERRIDE
   Tempel paling bawah admin.css
========================================================= */

/* Main spacing */
.main-content,
.admin-content,
.content-wrapper,
.page-content {
    padding-bottom: 110px !important;
}

/* Header page card lebih rapi */
.page-header-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px !important;
    padding: 34px 34px !important;
    margin-bottom: 24px !important;
}

.page-header-card h2 {
    line-height: 1.15 !important;
    letter-spacing: -0.04em;
}

.page-header-card p {
    max-width: 760px;
    line-height: 1.7 !important;
}

/* Eyebrow badge */
.eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
}

/* Card global */
.table-card,
.form-card,
.panel-card,
.stat-card,
.filter-card {
    border-radius: 22px !important;
    overflow: hidden;
}

/* Table card header */
.table-card-header,
.panel-header {
    gap: 14px;
    align-items: flex-start !important;
}

.table-card-header h3,
.panel-header h3 {
    line-height: 1.2 !important;
}

.table-card-header p,
.panel-header p {
    line-height: 1.5 !important;
}

/* Form global */
.form-control,
.form-select,
textarea.form-control {
    min-height: 48px;
    border-radius: 16px !important;
}

textarea.form-control {
    min-height: 120px;
}

.form-group label {
    line-height: 1.35;
    margin-bottom: 8px;
}

/* Button global */
.btn {
    min-height: 44px;
    border-radius: 15px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-sm {
    min-height: 38px;
    border-radius: 12px !important;
}

/* Action button table */
.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: nowrap;
}

.action-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Stats grid lebih konsisten */
.stats-grid {
    gap: 16px !important;
}

.stat-card {
    min-height: 122px;
    align-items: center !important;
}

.stat-card strong {
    line-height: 1.15 !important;
}

.stat-card small {
    line-height: 1.35 !important;
}

/* Detail grid biar tidak pecah aneh */
.detail-grid {
    gap: 14px !important;
}

.detail-item {
    min-width: 0;
}

.detail-item strong {
    word-break: break-word;
}

/* Summary list */
.summary-item {
    gap: 12px;
    align-items: center !important;
}

.summary-item strong {
    word-break: break-word;
}

/* Badge */
.badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Mobile card list */
.mobile-card-list {
    gap: 14px !important;
}

.mobile-data-card {
    border-radius: 22px !important;
    padding: 18px !important;
}

.mobile-data-header {
    gap: 12px;
}

.mobile-data-header h3 {
    line-height: 1.2 !important;
}

.mobile-data-body {
    gap: 10px !important;
}

.mobile-note {
    border-radius: 16px !important;
}

.mobile-data-actions {
    gap: 10px !important;
}

.mobile-data-actions .btn,
.mobile-delete-form .btn {
    flex: 1 1 auto;
}

/* =========================================================
   REPORT PAGE FIX
========================================================= */

.report-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto !important;
    align-items: end !important;
    gap: 14px !important;
}

.report-filter-grid .form-group {
    min-width: 0;
}

.report-filter-grid .filter-actions {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.report-filter-grid .filter-actions .d-flex {
    align-items: center;
}

.report-filter-grid .filter-actions .btn {
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
}

/* Shortcut laporan */
.report-shortcut-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.report-shortcut-card {
    min-height: 148px !important;
    padding: 20px !important;
    border-radius: 22px !important;
}

/* =========================================================
   MOBILE FIX GLOBAL
========================================================= */

@media (max-width: 760px) {
    body {
        overflow-x: hidden;
    }

    .main-content,
    .admin-content,
    .content-wrapper,
    .page-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
        padding-bottom: 118px !important;
    }

    .page-header-card {
        border-radius: 24px !important;
        padding: 28px 22px !important;
        margin-bottom: 18px !important;
    }

    .page-header-card h2 {
        font-size: 34px !important;
        line-height: 1.14 !important;
        letter-spacing: -0.045em;
    }

    .page-header-card p {
        font-size: 18px !important;
        line-height: 1.65 !important;
        max-width: 100%;
    }

    .eyebrow {
        font-size: 14px !important;
        letter-spacing: 0.16em;
        padding: 10px 16px !important;
    }

    .header-action-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 14px;
    }

    .header-action-group .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .stat-card {
        min-height: 104px;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .stat-icon {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 16px !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .table-card,
    .form-card,
    .panel-card {
        border-radius: 22px !important;
    }

    .table-card-header,
    .panel-header {
        padding: 22px !important;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .table-card-header .btn,
    .panel-header .btn {
        width: 100%;
    }

    .filter-card {
        padding: 18px !important;
        border-radius: 0 !important;
    }

    .filter-grid,
    .school-filter-grid,
    .distribution-filter-grid,
    .confirmation-filter-grid,
    .complaint-filter-grid,
    .report-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .filter-actions .d-flex,
    .report-filter-grid .filter-actions .d-flex {
        width: 100%;
        flex-direction: column;
        gap: 10px !important;
    }

    .filter-actions .btn,
    .filter-actions a,
    .report-filter-grid .filter-actions .btn,
    .report-filter-grid .filter-actions a {
        width: 100%;
        min-height: 50px;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .form-group.full {
        grid-column: auto !important;
    }

    .form-control,
    .form-select {
        min-height: 54px;
        font-size: 16px !important;
        border-radius: 16px !important;
    }

    .form-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
    }

    .form-actions .btn,
    .form-actions a {
        width: 100%;
        min-height: 52px;
    }

    .admin-table {
        min-width: 860px;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
    }

    .detail-item.full {
        grid-column: auto !important;
    }

    .summary-list {
        gap: 10px !important;
    }

    .summary-item {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .quick-actions a {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .mobile-data-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .mobile-data-actions .btn,
    .mobile-delete-form,
    .mobile-delete-form .btn {
        width: 100%;
    }

    /* Report khusus mobile */
    .report-shortcut-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .report-shortcut-card {
        min-height: auto !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }

    .report-shortcut-card i {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .report-shortcut-card strong {
        font-size: 16px !important;
    }

    .report-shortcut-card span {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

/* =========================================================
   SMALL MOBILE FIX
========================================================= */

@media (max-width: 430px) {
    .page-header-card h2 {
        font-size: 31px !important;
    }

    .page-header-card p {
        font-size: 16px !important;
    }

    .table-card-header h3,
    .panel-header h3 {
        font-size: 23px !important;
    }

    .table-card-header p,
    .panel-header p {
        font-size: 15px !important;
    }

    .stat-card strong {
        font-size: 25px !important;
    }

    .btn {
        font-size: 15px !important;
    }
}
/* REPORT INDEX FIX */
.report-filter-card {
    margin-bottom: 22px !important;
}

.report-filter-inner {
    padding: 20px !important;
}

.report-period-grid {
    display: grid;
    grid-template-columns: 220px 220px auto;
    gap: 14px;
    align-items: end;
}

.report-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.report-main-stats,
.report-secondary-stats,
.report-module-grid,
.report-bottom-grid {
    margin-top: 22px !important;
}

.report-bottom-grid {
    align-items: start;
}

.report-mobile-list {
    display: none;
}

@media (max-width: 760px) {
    .report-page-header {
        margin-bottom: 18px !important;
    }

    .report-filter-card {
        margin-bottom: 18px !important;
    }

    .report-filter-inner {
        padding: 16px !important;
    }

    .report-period-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .report-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .report-action-buttons .btn,
    .report-action-buttons a {
        width: 100%;
        min-height: 50px;
    }

    .report-main-stats,
    .report-secondary-stats,
    .report-module-grid,
    .report-bottom-grid {
        margin-top: 16px !important;
    }

    .report-module-grid {
        grid-template-columns: 1fr !important;
    }

    .report-shortcut-card {
        min-height: 130px !important;
        padding: 18px !important;
    }

    .report-bottom-grid {
        grid-template-columns: 1fr !important;
    }

    .report-bottom-grid .table-responsive {
        display: none;
    }

    .report-mobile-list {
        display: grid;
        padding: 0 16px 18px;
    }
}
/* PROFILE PAGE */
.profile-card {
    overflow: hidden;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 6px 0 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.profile-avatar {
    width: 92px;
    height: 92px;
    min-width: 92px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(22, 163, 74, .22);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    min-width: 0;
}

.profile-info h3 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    word-break: break-word;
}

.profile-info p {
    margin: 0 0 10px;
    color: #64748b;
    word-break: break-word;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 760px) {
    .profile-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-avatar {
        width: 84px;
        height: 84px;
        min-width: 84px;
        border-radius: 24px;
        font-size: 34px;
    }

    .profile-info h3 {
        font-size: 24px;
    }
}
/* TOPBAR PROFILE FIX - SESUAI DESAIN ASLI */

.profile-avatar img,
.profile-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.profile-menu-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 900;
}

.profile-menu-header strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.profile-menu-header small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    word-break: break-all;
}

@media (max-width: 760px) {
    .profile-menu-header {
        padding: 14px;
    }

    .profile-menu-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}
/* =========================================
   TOPBAR PROFILE AVATAR FIX
   tempel paling bawah admin.css
========================================= */

.admin-topbar .profile-dropdown {
    position: relative;
}

.admin-topbar .profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    cursor: pointer;
}

.admin-topbar .profile-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 14px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.admin-topbar .profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.admin-topbar .profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.admin-topbar .profile-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar .profile-info span {
    font-size: 12px;
    color: #64748b;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-topbar .profile-chevron {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* dropdown */
.admin-topbar .profile-menu {
    min-width: 260px;
    right: 0;
    left: auto;
}

.admin-topbar .profile-menu-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
}

.admin-topbar .profile-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* mobile */
@media (max-width: 760px) {
    .admin-topbar .profile-btn {
        padding: 0 !important;
        min-height: 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        justify-content: center;
    }

    .admin-topbar .profile-avatar {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    .admin-topbar .profile-info,
    .admin-topbar .profile-chevron {
        display: none !important;
    }

    .admin-topbar .profile-menu {
        position: fixed;
        top: 78px;
        left: 14px;
        right: 14px;
        width: auto;
        min-width: 0;
    }
}
/* USERS PAGE */
.user-filter-grid {
    grid-template-columns: 1.4fr .8fr .8fr auto;
}

.user-table-profile,
.user-mobile-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-table-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 900;
    font-size: 16px;
}

.user-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.action-btn.warning {
    color: #d97706;
    background: rgba(245, 158, 11, .12);
}

.action-btn.warning:hover {
    background: rgba(245, 158, 11, .18);
}

.action-btn.disabled,
.action-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 980px) {
    .user-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .user-filter-grid {
        grid-template-columns: 1fr;
    }

    .user-mobile-title {
        align-items: flex-start;
    }

    .user-mobile-title h3 {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
}
/* SETTINGS PAGE */
.settings-preview-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(59,130,246,.08));
    border: 1px solid rgba(148, 163, 184, .18);
}

.settings-logo-preview {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(16, 185, 129, .2);
}

.settings-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-preview-card h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #0f172a;
    font-weight: 800;
}

.settings-preview-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
}

.color-input {
    padding: 6px !important;
    height: 52px !important;
    cursor: pointer;
}

.settings-color-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.settings-color-preview div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, .9);
    border: 1px solid rgba(226, 232, 240, .9);
}

.settings-color-preview span {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
}

.settings-color-preview strong {
    font-size: 14px;
    color: #0f172a;
}

.settings-color-preview small {
    margin-left: auto;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 760px) {
    .settings-preview-card {
        align-items: flex-start;
    }

    .settings-logo-preview {
        width: 62px;
        height: 62px;
        min-width: 62px;
        border-radius: 18px;
        font-size: 26px;
    }

    .settings-preview-card h3 {
        font-size: 19px;
    }
}
/* NOTIFICATIONS PAGE */
.notification-filter-grid {
    grid-template-columns: 1.4fr .8fr .8fr auto;
}

.notification-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.notification-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.notification-item.is-unread {
    border-color: rgba(16, 185, 129, .32);
    background: linear-gradient(135deg, rgba(236, 253, 245, .86), #fff);
}

.notification-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.notification-header h3 {
    margin: 0 0 5px;
    font-size: 17px;
    color: #0f172a;
    font-weight: 800;
}

.notification-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.notification-header p span {
    margin-left: 6px;
    color: #94a3b8;
}

.notification-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-message {
    margin-top: 12px;
    color: #334155;
    line-height: 1.65;
    font-size: 14px;
}

.notification-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.notification-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
}

.notification-meta span,
.notification-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notification-meta a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 700;
}

.notification-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-mobile-list {
    display: none;
}

@media (max-width: 980px) {
    .notification-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .notification-filter-grid {
        grid-template-columns: 1fr;
    }

    .notification-list {
        display: none;
    }

    .notification-mobile-list {
        display: grid;
        padding: 0 16px 18px;
    }
}
/* NOTIFICATION CREATE PREVIEW */
.notification-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.notification-preview-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-preview-card h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.notification-preview-card p {
    margin: 0 0 8px;
    color: #475569;
    line-height: 1.55;
}

.notification-preview-card small {
    color: #64748b;
    font-weight: 700;
}

.notification-preview-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-preview-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-preview-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-preview-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-preview-card-info {
    border-color: rgba(59, 130, 246, .22);
    background: linear-gradient(135deg, rgba(239, 246, 255, .9), #fff);
}

.notification-preview-card-success {
    border-color: rgba(16, 185, 129, .22);
    background: linear-gradient(135deg, rgba(236, 253, 245, .9), #fff);
}

.notification-preview-card-warning {
    border-color: rgba(245, 158, 11, .25);
    background: linear-gradient(135deg, rgba(255, 251, 235, .95), #fff);
}

.notification-preview-card-danger {
    border-color: rgba(239, 68, 68, .25);
    background: linear-gradient(135deg, rgba(254, 242, 242, .95), #fff);
}

@media (max-width: 760px) {
    .notification-preview-card {
        padding: 16px;
        border-radius: 18px;
    }

    .notification-preview-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 14px;
    }
}
/* TOPBAR NOTIFICATION COUNT */
.notification-btn {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .25);
}

.notification-btn .notification-dot {
    display: none;
}
/* =========================================
   NOTIFICATIONS FIX - SINGLE RESPONSIVE LIST
   Tempel paling bawah admin.css
========================================= */

.notification-mobile-list {
    display: none !important;
}

.notification-list {
    display: grid !important;
    gap: 14px;
    padding: 18px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, .95);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.notification-item.is-unread {
    border-color: rgba(16, 185, 129, .32);
    background: linear-gradient(135deg, rgba(236, 253, 245, .9), #fff);
}

.notification-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 20px;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-content {
    min-width: 0;
    flex: 1;
}

.notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.notification-header h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.25;
}

.notification-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.notification-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-message {
    margin-top: 12px;
    color: #334155;
    line-height: 1.65;
    font-size: 14px;
}

.notification-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.notification-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
}

.notification-meta span,
.notification-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notification-meta a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 700;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Mobile khusus notifikasi */
@media (max-width: 760px) {
    .notification-list {
        padding: 14px !important;
        gap: 14px !important;
    }

    .notification-item {
        padding: 16px !important;
        border-radius: 22px !important;
        gap: 12px !important;
    }

    .notification-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 14px !important;
        font-size: 18px !important;
    }

    .notification-header {
        flex-direction: column;
        gap: 10px;
    }

    .notification-header h3 {
        font-size: 22px !important;
        line-height: 1.22 !important;
        letter-spacing: -0.03em;
    }

    .notification-header p {
        font-size: 15px !important;
    }

    .notification-badges {
        justify-content: flex-start;
    }

    .notification-message {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .notification-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notification-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 15px;
    }

    .notification-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .notification-actions form,
    .notification-actions .btn {
        width: 100%;
    }

    .notification-actions .btn {
        min-height: 48px;
    }
}
@media (max-width: 760px) {
    .admin-content {
        padding-bottom: 130px !important;
    }

    .notification-list {
        margin-bottom: 90px !important;
    }
}
@media (max-width: 920px) {
    .notification-list {
        padding: 14px !important;
        gap: 14px !important;
        margin-bottom: 95px !important;
    }

    .notification-item {
        display: flex !important;
        padding: 16px !important;
        border-radius: 22px !important;
        gap: 12px !important;
    }

    .notification-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border-radius: 14px !important;
        font-size: 18px !important;
    }

    .notification-header {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .notification-header h3 {
        font-size: 22px !important;
        line-height: 1.22 !important;
        letter-spacing: -0.03em;
    }

    .notification-header p {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .notification-header p span {
        display: block;
        margin-left: 0 !important;
        margin-top: 3px;
    }

    .notification-badges {
        justify-content: flex-start !important;
    }

    .notification-message {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .notification-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .notification-meta {
        flex-direction: column !important;
        gap: 8px !important;
        font-size: 15px !important;
    }

    .notification-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .notification-actions form,
    .notification-actions .btn {
        width: 100% !important;
    }

    .notification-actions .btn {
        min-height: 48px !important;
    }
}
/* =========================================
   NOTIFICATIONS PRO FIX - ISOLATED CLASSES
========================================= */

.notif-pro-card {
    overflow: hidden !important;
}

.notif-pro-filter {
    padding: 18px !important;
}

.notif-pro-filter-grid {
    display: grid;
    grid-template-columns: 1.5fr .8fr .8fr auto;
    gap: 14px;
    align-items: end;
}

.notif-pro-filter-actions > div {
    display: flex;
    gap: 10px;
    align-items: center;
}

.notif-pro-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.notif-pro-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.notif-pro-item.unread {
    background: linear-gradient(135deg, rgba(236, 253, 245, .85), #ffffff);
    border-color: rgba(16, 185, 129, .28);
}

.notif-pro-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
}

.notif-pro-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notif-pro-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notif-pro-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notif-pro-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notif-pro-main {
    min-width: 0;
}

.notif-pro-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notif-pro-title-block {
    min-width: 0;
}

.notif-pro-title-block h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: -.02em;
    word-break: break-word;
}

.notif-pro-title-block p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.notif-pro-title-block p span {
    color: #94a3b8;
}

.notif-pro-title-block p strong {
    color: #0f172a;
}

.notif-pro-title-block small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.notif-pro-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notif-pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.notif-pro-badge.info {
    color: #1d4ed8;
    background: #dbeafe;
}

.notif-pro-badge.success,
.notif-pro-badge.read {
    color: #047857;
    background: #d1fae5;
}

.notif-pro-badge.warning,
.notif-pro-badge.unread {
    color: #92400e;
    background: #fef3c7;
}

.notif-pro-badge.danger {
    color: #b91c1c;
    background: #fee2e2;
}

.notif-pro-message {
    margin-top: 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
}

.notif-pro-bottom {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.notif-pro-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 13px;
}

.notif-pro-meta span,
.notif-pro-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-pro-meta a {
    color: #16a34a;
    text-decoration: none;
    font-weight: 800;
}

.notif-pro-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .notif-pro-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notif-pro-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 920px) {
    .notif-pro-filter {
        padding: 14px !important;
    }

    .notif-pro-filter-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .notif-pro-filter-actions > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .notif-pro-filter-actions .btn,
    .notif-pro-filter-actions a {
        width: 100%;
        min-height: 48px;
    }

    .notif-pro-list {
        padding: 14px;
        gap: 14px;
        margin-bottom: 105px;
    }

    .notif-pro-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        border-radius: 22px;
    }

    .notif-pro-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 15px;
        font-size: 19px;
    }

    .notif-pro-top {
        flex-direction: column;
        gap: 12px;
    }

    .notif-pro-title-block h3 {
        font-size: 21px;
        line-height: 1.25;
    }

    .notif-pro-title-block p {
        font-size: 15px;
    }

    .notif-pro-title-block small {
        font-size: 13px;
    }

    .notif-pro-badges {
        justify-content: flex-start;
    }

    .notif-pro-message {
        font-size: 16px;
        line-height: 1.65;
    }

    .notif-pro-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notif-pro-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 15px;
    }

    .notif-pro-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .notif-pro-actions form,
    .notif-pro-actions .btn {
        width: 100%;
    }

    .notif-pro-actions .btn {
        min-height: 48px;
    }
}

@media (max-width: 430px) {
    .notif-pro-item {
        grid-template-columns: 1fr;
    }

    .notif-pro-icon {
        width: 46px;
        height: 46px;
    }
}
/* TOPBAR NOTIFICATION BADGE FINAL */
.notification-btn {
    position: relative !important;
}

.notification-count {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 21px !important;
    text-align: center !important;
    border: 2px solid #fff !important;
    box-shadow: 0 8px 18px rgba(239, 68, 68, .25) !important;
}

.profile-menu-count {
    margin-left: auto !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 22px !important;
    text-align: center !important;
}

.notification-btn .notification-dot {
    display: none !important;
}

/* Avatar topbar tetap kecil */
.admin-topbar .profile-avatar,
.admin-topbar .profile-btn .profile-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.admin-topbar .profile-avatar img,
.profile-menu-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* ================================
   DASHBOARD PREMIUM FIX
================================ */

.dashboard-hero-card {
    margin-bottom: 22px !important;
}

.dashboard-main-stats {
    gap: 16px !important;
}

.dashboard-top-grid,
.dashboard-bottom-grid {
    align-items: start;
}

.dashboard-menu-preview {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(59,130,246,.07));
    border: 1px solid rgba(226, 232, 240, .9);
}

.dashboard-menu-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    font-size: 25px;
    box-shadow: 0 14px 28px rgba(16, 185, 129, .18);
}

.dashboard-menu-preview h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 23px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.dashboard-menu-preview p {
    margin: 0 0 12px;
    color: #64748b;
    line-height: 1.6;
}

.dashboard-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-progress-group {
    padding: 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, .92);
    border: 1px solid rgba(226, 232, 240, .9);
}

.dashboard-progress-head,
.dashboard-progress-info {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.dashboard-progress-head span {
    color: #475569;
    font-weight: 800;
    font-size: 14px;
}

.dashboard-progress-head strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.dashboard-progress {
    margin: 12px 0;
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #22c55e);
}

.dashboard-progress.mini {
    margin: 10px 0 0;
    height: 9px;
}

.dashboard-progress-info small {
    color: #64748b;
    font-size: 12px;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-quick-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
    transition: .18s ease;
}

.dashboard-quick-grid a:hover {
    transform: translateY(-2px);
    color: #16a34a;
    border-color: rgba(16, 185, 129, .28);
}

.dashboard-quick-grid i {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #16a34a;
    background: #dcfce7;
    font-size: 18px;
}

.dashboard-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.dashboard-list-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.dashboard-list-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
}

.dashboard-list-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.dashboard-list-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dashboard-list-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dashboard-list-main {
    min-width: 0;
    flex: 1;
}

.dashboard-list-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.dashboard-list-head strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
    word-break: break-word;
}

.dashboard-list-head span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.dashboard-list-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.dashboard-list-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dashboard-badge-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.empty-state.compact {
    padding: 28px 18px;
}

@media (max-width: 920px) {
    .dashboard-top-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr !important;
    }

    .dashboard-menu-preview {
        padding: 16px;
        border-radius: 20px;
    }

    .dashboard-menu-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 17px;
        font-size: 22px;
    }

    .dashboard-menu-preview h3 {
        font-size: 21px;
    }

    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-list {
        padding: 14px;
    }

    .dashboard-list-item {
        border-radius: 18px;
        padding: 14px;
    }

    .dashboard-list-head {
        flex-direction: column;
        gap: 8px;
    }

    .dashboard-badge-stack {
        justify-content: flex-start;
    }

    .dashboard-list-meta {
        flex-direction: column;
        gap: 7px;
    }

    .dashboard-progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 430px) {
    .dashboard-menu-preview {
        flex-direction: column;
    }

    .dashboard-list-item {
        flex-direction: column;
    }
}
/* SIDEBAR AVATAR FIX */
.sidebar-user-avatar {
    overflow: hidden !important;
}

.sidebar-user-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* GLOBAL JS SUPPORT FIX */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 999px;
    display: inline-block;
    animation: btnSpin .75s linear infinite;
}

.btn.is-loading {
    pointer-events: none;
    opacity: .86;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.sidebar-is-open {
    overflow: hidden !important;
}
/* ================================
   MOBILE BOTTOM NAV ROLE FIX
================================ */

.mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 950;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .20);
}

.mobile-bottom-nav a {
    min-width: 0;
    min-height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    transition: .18s ease;
}

.mobile-bottom-nav a i {
    font-size: 20px;
    line-height: 1;
}

.mobile-bottom-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: #16a34a;
    background: linear-gradient(135deg, rgba(220, 252, 231, .95), rgba(236, 253, 245, .95));
}

@media (max-width: 920px) {
    .mobile-bottom-nav {
        display: grid;
    }

    .admin-content {
        padding-bottom: 115px !important;
    }
}

@media (max-width: 390px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 22px;
        padding: 7px;
    }

    .mobile-bottom-nav a {
        min-height: 54px;
        border-radius: 16px;
        font-size: 10px;
    }

    .mobile-bottom-nav a i {
        font-size: 19px;
    }
}
/* JS SUPPORT FIX */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 999px;
    display: inline-block;
    animation: btnSpin .75s linear infinite;
}

.btn.is-loading {
    pointer-events: none;
    opacity: .86;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.sidebar-is-open {
    overflow: hidden !important;
}
/* ================================
   AUTH LOGIN PREMIUM
================================ */

.auth-page {
    min-height: 100vh;
    margin: 0;
    background: #020617;
    color: #0f172a;
    overflow-x: hidden;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
}

.auth-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
    opacity: .8;
    pointer-events: none;
}

.auth-bg-orb-1 {
    width: 360px;
    height: 360px;
    top: -120px;
    left: -90px;
    background: radial-gradient(circle, rgba(16, 185, 129, .55), transparent 68%);
}

.auth-bg-orb-2 {
    width: 460px;
    height: 460px;
    right: -130px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(59, 130, 246, .42), transparent 70%);
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black, transparent 72%);
    pointer-events: none;
}

.auth-card,
.auth-side {
    position: relative;
    z-index: 2;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .68);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
    backdrop-filter: blur(22px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 28px;
}

.auth-brand-logo {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 26px;
    box-shadow: 0 16px 32px rgba(16, 185, 129, .28);
}

.auth-brand strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
}

.auth-brand span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-top: 3px;
}

.auth-header {
    margin-bottom: 22px;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #dcfce7;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.auth-header h1 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -.04em;
    font-weight: 950;
}

.auth-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    font-size: 15px;
}

.auth-inline-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.auth-inline-alert-success {
    background: #dcfce7;
    color: #047857;
}

.auth-inline-alert-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.auth-inline-alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.auth-inline-alert-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.auth-input-wrap {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: .18s ease;
}

.auth-input-wrap:focus-within {
    background: #fff;
    border-color: rgba(16, 185, 129, .65);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.auth-input-wrap > i {
    color: #10b981;
    font-size: 18px;
}

.auth-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

.auth-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 600;
}

.auth-password-toggle {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
}

.auth-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.auth-submit {
    min-height: 58px;
    border: 0;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(16, 185, 129, .3);
    transition: .18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(16, 185, 129, .36);
}

.auth-submit.is-loading {
    opacity: .88;
    pointer-events: none;
}

.auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.auth-side {
    display: flex;
    justify-content: center;
}

.auth-side-card {
    max-width: 640px;
    padding: 34px;
    border-radius: 34px;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(24px);
    color: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.auth-side-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .16);
    color: #86efac;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 20px;
}

.auth-side-card h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -.055em;
    font-weight: 950;
}

.auth-side-card p {
    margin: 0;
    max-width: 560px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.75;
}

.auth-feature-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-feature-grid div {
    padding: 17px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.auth-feature-grid i {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(16, 185, 129, .16);
    color: #86efac;
    font-size: 20px;
    margin-bottom: 12px;
}

.auth-feature-grid strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 4px;
}

.auth-feature-grid span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .auth-card {
        max-width: none;
        padding: 24px;
        border-radius: 28px;
    }

    .auth-side {
        display: none;
    }

    .auth-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 420px) {
    .auth-shell {
        padding: 12px;
    }

    .auth-card {
        padding: 20px;
        border-radius: 24px;
    }

    .auth-brand-logo {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 18px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-submit {
        min-height: 56px;
    }
}
/* AUTH JS SUPPORT */
.auth-submit .btn-spinner,
.swal-loading-wrap .btn-spinner,
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 999px;
    display: inline-block;
    animation: btnSpin .75s linear infinite;
}

.swal-loading-wrap {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 6px 0 2px;
}

.swal-loading-wrap p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.swal-loading-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    font-size: 26px;
    box-shadow: 0 16px 32px rgba(16, 185, 129, .25);
}

.swal-loading-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 16px 32px rgba(239, 68, 68, .25);
}

.swal-progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.swal-progress span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #10b981, #22c55e);
    animation: swalProgressMove 1.1s ease-in-out infinite;
}

@keyframes swalProgressMove {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(240%);
    }
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}
/* ROLES PAGE */
.role-filter-grid {
    grid-template-columns: 1fr auto;
}

.role-table-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-table-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    font-size: 18px;
}

@media (max-width: 760px) {
    .role-filter-grid {
        grid-template-columns: 1fr;
    }
}
/* ACTIVITY LOGS PAGE */
.activity-filter-grid {
    grid-template-columns: 1.3fr .8fr .8fr .7fr .7fr auto;
}

.activity-log-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.activity-log-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}

.activity-log-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    font-size: 20px;
}

.activity-log-main {
    min-width: 0;
}

.activity-log-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.activity-log-head h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.25;
}

.activity-log-head p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.activity-log-desc {
    margin-top: 12px;
    color: #334155;
    line-height: 1.65;
    font-size: 14px;
}

.activity-log-meta {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 12px;
}

.activity-log-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.activity-log-agent {
    margin-top: 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, .95);
    border: 1px solid rgba(226, 232, 240, .9);
    padding: 10px 12px;
}

.activity-log-agent summary {
    cursor: pointer;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.activity-log-agent div {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .activity-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-filter-grid .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .activity-filter-grid {
        grid-template-columns: 1fr;
    }

    .activity-log-list {
        padding: 14px;
        margin-bottom: 95px;
    }

    .activity-log-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .activity-log-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
        font-size: 18px;
    }

    .activity-log-head {
        flex-direction: column;
        gap: 8px;
    }

    .activity-log-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
}
/* USERS INDEX FIX */
.user-table-profile,
.user-mobile-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-table-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 900;
}

.user-table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-table-avatar span {
    color: #fff;
    font-weight: 900;
}

.user-mobile-title .user-table-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
}

.mobile-data-actions .btn[disabled] {
    opacity: .65;
    pointer-events: none;
}
/* RESET PASSWORD FIELD FIX */
.password-field-wrap {
    position: relative;
}

.password-field-wrap .form-control {
    padding-right: 56px !important;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #64748b;
    background: #e2e8f0;
    cursor: pointer;
}

.password-toggle-btn:hover {
    color: #0f172a;
    background: #cbd5e1;
}