/* ─── Lotus Brand Colors ─────────────────────────────────── */
:root {
    --lotus-navy: #092D76;
    --lotus-navy-dark: #062055;
    --lotus-navy-light: #124a9e;
    --lotus-accent: #CC1818;
    --lotus-green: #1FA971;
    --lotus-amber: #F5A623;
    --lotus-bg: #F4F6FA;
    --lotus-text: #111827;
    --lotus-text-muted: #6B7280;
    --lotus-border: #E5E7EB;
    --lotus-card-bg: #FFFFFF;
    --sidebar-width: 260px;

    --header-height: 64px;
    --card-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 4px 6px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base Layout ────────────────────────────────────────── */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--lotus-bg);
    color: var(--lotus-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Global Custom Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.sidebar-fixed {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
    width: var(--sidebar-width);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: 1px 0 8px rgba(0,0,0,0.04);
}
.wrapper {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-slow);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1025;
}

/* ─── Sidebar Toggle — Complete Hide ─────────────────────── */
.sidebar-hidden {
    transform: translateX(-100%);
}
.sidebar-hidden + .wrapper {
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .sidebar-fixed {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }
    .sidebar-fixed .sidebar-brand-text,
    .sidebar-fixed .nav-text,
    .sidebar-fixed .nav-title { display: block; }
    .sidebar-fixed .sidebar-nav .nav-link {
        justify-content: flex-start;
        padding: 10px 14px;
        margin: 1px 8px;
    }
    .sidebar-fixed .sidebar-nav .nav-link.active::before { left: -8px; }
    .sidebar-fixed .sidebar-user-info { display: block; }
    .sidebar-fixed .sidebar-user { justify-content: flex-start; }
    .sidebar-fixed.sidebar-show {
        transform: translateX(0);
    }
    .wrapper {
        margin-left: 0;
    }
}

/* ─── Sidebar Brand ──────────────────────────────────────── */
.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid var(--lotus-border);
}
.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--lotus-accent), #e84a5a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ─── Sidebar Navigation ─────────────────────────────────── */
.bg-lotus-navy {
    background-color: var(--lotus-navy) !important;
}

.sidebar-nav {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-nav .nav-title {
    color: rgba(0,0,0,0.35);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 20px 20px 6px 16px;
    border-left: 2px solid var(--lotus-border);
}
.sidebar-nav .nav-item {
    padding: 0 8px;
}
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    padding: 10px 14px 10px 12px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    white-space: nowrap;
}
.sidebar-nav .nav-link:hover {
    color: var(--lotus-navy);
    background: rgba(9,45,118,0.06);
}
.sidebar-nav .nav-link:hover .nav-icon {
    color: rgba(0,0,0,0.55);
}

.sidebar-nav .nav-link.active {
    color: rgba(255,255,255,0.85);
    background: var(--lotus-navy);
    font-weight: 600;
}
.sidebar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--lotus-accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 6px rgba(215,38,56,0.3);
}
.sidebar-nav .nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}
.sidebar-nav .nav-link.active .nav-icon {
    color: rgba(255,255,255,0.65);
}
.sidebar-nav .nav-link.active .nav-icon svg {
    fill: rgba(204,24,24,0.15);
}

/* ─── Sidebar Custom Scrollbar ──────────────────────────── */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.15);
}
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.08) transparent;
}

.sidebar-footer {
    border-top: 1px solid var(--lotus-border);
    padding: 14px 16px;
    background: rgba(11,31,58,0.02);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(11,31,58,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--lotus-navy);
    border: 1.5px solid var(--lotus-border);
}
.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lotus-text);
    line-height: 1.3;
}
.sidebar-user-role {
    font-size: 0.65rem;
    color: var(--lotus-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* ─── Top Header ─────────────────────────────────────────── */
.header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--lotus-border);
    display: flex;
    align-items: center;
}
.header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.header-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--lotus-border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--lotus-text-muted);
}
.header-toggler:hover {
    background: var(--lotus-bg);
    border-color: #d1d5db;
    color: var(--lotus-text);
}
.header-toggler .cil-menu {
    font-size: 1.1rem;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav .nav-item {
    position: relative;
}
.header-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--lotus-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}
.header-nav .nav-link:hover {
    background: var(--lotus-bg);
    color: var(--lotus-text);
}
.header-nav .nav-link .cil-bell {
    font-size: 1.15rem;
}
.notif-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: var(--lotus-accent);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ─── Avatar ─────────────────────────────────────────────── */
.avatar-initial {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--lotus-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.avatar-initial:hover {
    background: var(--lotus-navy-light);
}

/* ─── Dropdown ────────────────────────────────────────────── */
.dropdown-menu {
    border: 1px solid var(--lotus-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 6px;
    margin-top: 8px !important;
}
.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--lotus-text);
    transition: all var(--transition-fast);
}
.dropdown-item:hover {
    background: var(--lotus-bg);
    color: var(--lotus-navy);
}

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
    margin-bottom: 1.5rem;
    animation: fadeSlideIn 0.4s ease both;
}
.page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lotus-text);
    margin: 0;
    letter-spacing: -0.3px;
}
.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 4px 0 0;
    font-size: 0.78rem;
}
.page-header .breadcrumb-item {
    color: var(--lotus-text-muted);
}
.page-header .breadcrumb-item a {
    color: var(--lotus-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.page-header .breadcrumb-item a:hover {
    color: var(--lotus-navy);
}
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: #d1d5db;
}
.page-header .breadcrumb-item.active {
    color: var(--lotus-text);
    font-weight: 600;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
    border: 1px solid var(--lotus-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: var(--lotus-card-bg);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover {
    box-shadow: var(--card-shadow-hover);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--lotus-border);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 14px 18px;
    color: var(--lotus-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body {
    padding: 18px;
}

/* ─── Stat Cards — Clean White with Accent Border ───────── */
.stat-card-accent {
    background: var(--lotus-card-bg);
    border: 1px solid var(--lotus-border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-base);
    overflow: hidden;
}
.stat-card-accent:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}
.stat-card-accent .stat-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
}
.stat-card-accent .stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.stat-card-accent .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--lotus-text);
    line-height: 1.2;
    letter-spacing: -0.4px;
}
.stat-card-accent .stat-label {
    font-size: 0.75rem;
    color: var(--lotus-text-muted);
    font-weight: 500;
    margin-top: 1px;
}
.stat-card-accent .stat-sub {
    font-size: 0.68rem;
    color: var(--lotus-text-muted);
    margin-top: 1px;
    opacity: 0.8;
}
.border-top-navy { border-top: 3px solid var(--lotus-navy); }
.border-top-accent { border-top: 3px solid var(--lotus-accent); }
.border-top-green { border-top: 3px solid var(--lotus-green); }
.border-top-amber { border-top: 3px solid var(--lotus-amber); }
.stat-icon-navy { background: rgba(11,31,58,0.08); color: var(--lotus-navy); }
.stat-icon-accent { background: rgba(215,38,56,0.08); color: var(--lotus-accent); }
.stat-icon-green { background: rgba(31,169,113,0.08); color: var(--lotus-green); }
.stat-icon-amber { background: rgba(245,166,35,0.08); color: var(--lotus-amber); }

/* ─── Tables ─────────────────────────────────────────────── */
.table {
    font-size: 0.82rem;
    margin: 0;
}
.table thead th {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--lotus-text-muted);
    border-bottom: 1px solid var(--lotus-border);
    padding: 10px 14px;
    white-space: nowrap;
}
.table td {
    padding: 10px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--lotus-border);
}
.table tbody tr:hover {
    background: rgba(0,0,0,0.01);
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.table-light {
    background: #f9fafb;
}

/* ─── DataTables 2.x ─────────────────────────────────────── */
.dt-container { padding: 0; }
.dt-container .dt-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.dt-container .dt-layout-row.dt-layout-table { padding: 0; }
.dt-container .dt-layout-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-length {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--lotus-text-muted);
}
.dt-length select.dt-input {
    border-radius: 6px;
    border: 1px solid var(--lotus-border);
    padding: 8px 42px 8px 14px;
    font-size: 0.85rem;
    min-height: 40px;
    min-width: 80px;
    color: var(--lotus-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}
.dt-length select.dt-input:focus {
    border-color: var(--lotus-navy);
    box-shadow: 0 0 0 2px rgba(11,31,58,0.08);
    outline: none;
}
.dt-search {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dt-search label {
    font-size: 0.8rem;
    color: var(--lotus-text-muted);
    white-space: nowrap;
}
.dt-search input.dt-input {
    border-radius: 6px;
    border: 1px solid var(--lotus-border);
    padding: 7px 12px;
    font-size: 0.85rem;
    min-height: 36px;
    min-width: 200px;
    background: #fff;
    transition: all var(--transition-fast);
}
.dt-search input.dt-input:focus {
    border-color: var(--lotus-navy);
    box-shadow: 0 0 0 2px rgba(11,31,58,0.08);
    outline: none;
}
.dt-info {
    font-size: 0.75rem;
    color: var(--lotus-text-muted);
    padding: 4px 0;
}
.dt-paging { display: flex; align-items: center; }
.dt-paging nav { display: flex; gap: 2px; }
.dt-paging .dt-paging-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 1px solid var(--lotus-border);
    border-radius: 6px;
    background: #fff;
    color: var(--lotus-text);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.dt-paging .dt-paging-button:hover:not(.disabled):not(.current) {
    border-color: var(--lotus-navy);
    color: var(--lotus-navy);
    background: #f0f2f7;
}
.dt-paging .dt-paging-button.current {
    background: var(--lotus-navy);
    border-color: var(--lotus-navy);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(11,31,58,0.2);
}
.dt-paging .dt-paging-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9fafb;
}
tfoot { display: none; }
.dataTable td:empty { display: none; }
.dataTable td[colspan] { text-align: center !important; }
.card-body.p-0 .dt-container .dt-layout-row:first-child { padding-top: 14px; }
.card-body.p-0 .dt-container .dt-layout-row:last-child { padding-bottom: 14px; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    font-weight: 500;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
}
.badge-lotus {
    border-radius: 20px;
    padding: 3px 9px;
    font-weight: 500;
    font-size: 0.7rem;
}
.badge-sm {
    font-size: 0.62rem;
    padding: 2px 7px;
}
.bg-lotus-accent { background-color: var(--lotus-accent) !important; }
.bg-lotus-green { background-color: var(--lotus-green) !important; }
.bg-lotus-amber { background-color: var(--lotus-amber) !important; }
.bg-lotus-navy-badge { background-color: var(--lotus-navy) !important; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 7px 16px;
    transition: all var(--transition-fast);
}
.btn-sm {
    padding: 5px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
}
.btn-lotus-navy {
    background-color: var(--lotus-navy);
    border-color: var(--lotus-navy);
    color: #fff;
}
.btn-lotus-navy:hover {
    background-color: var(--lotus-navy-light);
    border-color: var(--lotus-navy-light);
    color: #fff;
    box-shadow: 0 4px 8px rgba(11,31,58,0.2);
}
.btn-lotus-outline {
    background: transparent;
    border: 1px solid var(--lotus-border);
    color: var(--lotus-text);
}
.btn-lotus-outline:hover {
    border-color: var(--lotus-navy);
    color: var(--lotus-navy);
    background: #f8f9fc;
}
.btn-lotus-ghost {
    background: transparent;
    border: none;
    color: var(--lotus-text-muted);
    padding: 5px 8px;
    border-radius: 6px;
}
.btn-lotus-ghost:hover {
    background: var(--lotus-bg);
    color: var(--lotus-text);
}
.btn-lotus-danger {
    background: transparent;
    border: 1px solid var(--lotus-accent);
    color: var(--lotus-accent);
}
.btn-lotus-danger:hover {
    background: var(--lotus-accent);
    color: #fff;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--lotus-border);
    padding: 7px 12px;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--lotus-navy);
    box-shadow: 0 0 0 2px rgba(11,31,58,0.08);
}
.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--lotus-text-muted);
    margin-bottom: 4px;
}
.form-text {
    font-size: 0.7rem;
    color: #9CA3AF;
    margin-top: 4px;
}
.form-check-input:checked {
    background-color: var(--lotus-navy);
    border-color: var(--lotus-navy);
}

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
    border-radius: 10px;
    font-size: 0.82rem;
    border: none;
    padding: 12px 16px;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}
.alert-dismissible .btn-close {
    font-size: 0.75rem;
}

/* ─── Lists ──────────────────────────────────────────────── */
.list-group-item {
    border-color: var(--lotus-border);
    padding: 12px 18px;
    font-size: 0.82rem;
    transition: background var(--transition-fast);
}
.list-group-item:hover {
    background: #f8f9fc;
}
.list-group-item.unread {
    background: #f0f4ff;
    border-left: 3px solid var(--lotus-navy);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--lotus-border);
    background: #fff;
    padding: 12px 24px;
    margin-top: auto;
}
.footer span {
    font-size: 0.75rem;
    color: #9CA3AF;
}

/* ─── Chart containers ───────────────────────────────────── */
.chart-container {
    position: relative;
    width: 100%;
}
.chart-container canvas {
    max-height: 200px;
}

/* ─── Nav tabs ────────────────────────────────────────────── */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: all var(--transition-fast);
    font-size: 0.82rem;
}
.nav-tabs .nav-link:hover:not(.active) {
    border-color: var(--lotus-border);
    background: var(--lotus-bg);
}

/* ─── Empty states ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #9CA3AF;
}
.empty-state .empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 0.82rem;
    margin: 0;
}

/* ─── Sidebar backdrop ──────────────────────────────────── */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1029;
    background: rgba(0,0,0,0.4);
    display: none;
}
.sidebar-backdrop.show { display: block; }

/* ─── Bulk actions bar ───────────────────────────────────── */
#bulkActions { display: none; }
#bulkActions.d-flex { display: flex !important; }

/* ─── Page Load Animation ────────────────────────────────── */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card {
    animation: fadeSlideIn 0.4s ease both;
}
.card:nth-child(1) { animation-delay: 0.02s; }
.card:nth-child(2) { animation-delay: 0.04s; }
.card:nth-child(3) { animation-delay: 0.06s; }
.card:nth-child(4) { animation-delay: 0.08s; }
.card:nth-child(5) { animation-delay: 0.1s; }
.card:nth-child(6) { animation-delay: 0.12s; }
.card:nth-child(7) { animation-delay: 0.14s; }
.card:nth-child(8) { animation-delay: 0.16s; }

/* ─── Utility ────────────────────────────────────────────── */
.opacity-50 { opacity: 0.5; }
.text-muted { color: var(--lotus-text-muted) !important; }
.text-accent { color: var(--lotus-accent) !important; }
.text-green { color: var(--lotus-green) !important; }
.text-amber { color: var(--lotus-amber) !important; }
.fw600 { font-weight: 600 !important; }
.fw700 { font-weight: 700 !important; }
.fw800 { font-weight: 800 !important; }
.font-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace !important; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* ─── Activity timeline ──────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--lotus-border);
}
.timeline-item {
    position: relative;
    padding-bottom: 16px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lotus-navy);
    border: 2px solid #fff;
}
.timeline-item .timeline-time {
    font-size: 0.7rem;
    color: #9CA3AF;
    margin-bottom: 2px;
}
.timeline-item .timeline-content {
    font-size: 0.82rem;
    color: var(--lotus-text);
}

/* ─── Mobile adjustments ─────────────────────────────────── */
@media (max-width: 768px) {
    .stat-card-accent .stat-value {
        font-size: 1.2rem;
    }
    .page-header h1 {
        font-size: 1.15rem;
    }
    .header .container-fluid {
        padding: 0 16px;
    }
    .card-body {
        padding: 14px;
    }
}
/* ─── Utility Classes ───────────────────────────── */
.lotus-text-xs { font-size: 0.7rem; }
.lotus-text-sm { font-size: 0.78rem; }
.lotus-text-base { font-size: 0.88rem; }
.lotus-text-muted { color: var(--lotus-text-muted); }
.lotus-border-bottom { border-bottom: 1px solid var(--lotus-border); }
.lotus-cap { text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

.progress-bar-lotus {
    height: 6px;
    border-radius: 3px;
    background: #E5E7EB;
    overflow: hidden;
}
.progress-bar-lotus .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.stat-value-lg {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lotus-navy);
    line-height: 1.2;
}
.stat-value-md {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}
.lotus-text-body { font-size: 0.82rem; }
.lotus-text-tiny { font-size: 0.65rem; }
.lotus-text-gray { color: #9CA3AF; }
[x-cloak] { display: none !important; }

/* Lucide icon sizing */
.btn [data-lucide] { width: 16px !important; height: 16px !important; }
[data-lucide] { width: 18px; height: 18px; }

/* Fluid spacing */
.card-body { padding: clamp(0.75rem, 1.5vw + 0.3rem, 1.5rem); }
.stat-value { font-size: 1.15rem; }

/* Disable Number Input Spinners (Up/Down arrows) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
