/* ==========================================================================
   BodyRepair Pro — Professional Blue Dashboard
   ========================================================================== */

:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-darker: #1A237E;
    --primary-light: #42A5F5;
    --primary-bg: #E3F2FD;
    --primary-bg-alt: #BBDEFB;
    --body-bg: #F0F4F8;
    --card-bg: #FFFFFF;
    --text-dark: #263238;
    --text-muted: #78909C;
    --text-light: #B0BEC5;
    --border: #E0E6ED;
    --danger: #E53935;
    --danger-dark: #C62828;
    --success: #43A047;
    --success-dark: #2E7D32;
    --warning: #FB8C00;
    --warning-dark: #EF6C00;
    --info: #039BE5;
    --info-dark: #0277BD;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    --sidebar-width: 260px;
    --navbar-height: 64px;

    --trans: all 0.25s ease;
}

* { box-sizing: border-box; }

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--body-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text-dark); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.app-wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.sidebar-header i.logo-icon {
    font-size: 26px;
    color: #90CAF9;
}

.sidebar-header .app-title {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #90CAF9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3px;
}

.sidebar-user {
    margin: 14px 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #42A5F5, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user .user-info { overflow: hidden; }
.sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user .user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0 20px;
}

.nav-section {
    padding: 14px 20px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.35);
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--trans);
    cursor: pointer;
    user-select: none;
}

.sidebar-nav .nav-link i.menu-icon {
    width: 18px;
    font-size: 15px;
    text-align: center;
}

.sidebar-nav .nav-link .chev {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s ease;
}

.sidebar-nav .nav-link[aria-expanded="true"] .chev { transform: rotate(90deg); }

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(66, 165, 245, 0.2);
    border-left-color: var(--primary-light);
    font-weight: 600;
}

.sidebar-nav .submenu {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav .submenu a {
    display: block;
    padding: 8px 20px 8px 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--trans);
}

.sidebar-nav .submenu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.sidebar-nav .submenu a.active { color: var(--primary-light); font-weight: 600; }

.sidebar-footer {
    padding: 12px 20px;
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--navbar-height);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
}

.hamburger {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--trans);
}
.hamburger:hover { background: var(--primary-bg); color: var(--primary); }

.topbar-left { display: flex; align-items: center; gap: 14px; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.search-box {
    display: flex;
    align-items: center;
    background: var(--body-bg);
    border-radius: 50px;
    padding: 8px 16px;
    min-width: 300px;
    transition: var(--trans);
    border: 1px solid transparent;
}
.search-box i { color: var(--text-muted); margin-right: 8px; font-size: 13px; }
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 13px;
    color: var(--text-dark);
}
.search-box:focus-within {
    background: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.topbar-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-dark);
    position: relative;
    cursor: pointer;
    transition: var(--trans);
}
.topbar-btn:hover { background: var(--primary-bg); color: var(--primary); }

.topbar-btn .notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--trans);
    background: transparent;
    border: none;
}
.user-menu:hover { background: var(--primary-bg); }
.user-menu .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #42A5F5, #1565C0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.user-menu .name { font-size: 13px; font-weight: 600; color: var(--text-dark); }

.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 200px;
}
.dropdown-menu .dropdown-item {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--trans);
}
.dropdown-menu .dropdown-item:hover { background: var(--primary-bg); color: var(--primary-dark); }
.dropdown-menu .dropdown-item.text-danger:hover { background: #FFEBEE; color: var(--danger-dark); }
.dropdown-menu .dropdown-item i { width: 16px; margin-right: 8px; color: var(--text-muted); }
.dropdown-menu .dropdown-item:hover i { color: inherit; }

.notif-dropdown {
    width: 360px;
    padding: 0;
}
.notif-dropdown .notif-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notif-dropdown .notif-header h6 { margin: 0; font-size: 14px; font-weight: 700; }
.notif-dropdown .notif-header a { font-size: 12px; }
.notif-dropdown .notif-list { max-height: 300px; overflow-y: auto; padding: 0; }
.notif-dropdown .notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    transition: var(--trans);
    cursor: pointer;
}
.notif-dropdown .notif-item:hover { background: var(--body-bg); }
.notif-dropdown .notif-item.unread { background: #F5F9FF; }
.notif-dropdown .notif-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.notif-dropdown .notif-item .txt { font-size: 13px; color: var(--text-dark); line-height: 1.4; }
.notif-dropdown .notif-item .time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.notif-dropdown .notif-footer {
    padding: 10px 18px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.content {
    padding: 24px;
    flex: 1;
}

.breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
    background: transparent;
    padding: 0;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .active { color: var(--text-muted); }

.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 14px 24px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
    transition: var(--trans);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.card-body { padding: 20px; }

.card-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.stat-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 22px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--trans);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.stat-card .ghost-icon {
    position: absolute;
    right: 16px;
    bottom: 10px;
    font-size: 40px;
    opacity: 0.3;
}
.stat-card .stat-label { font-size: 13px; opacity: 0.85; font-weight: 500; }
.stat-card .stat-value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.stat-card .stat-desc { font-size: 12px; opacity: 0.75; margin-top: 4px; }

.stat-primary { background: linear-gradient(135deg, #1565C0, #0D47A1); }
.stat-success { background: linear-gradient(135deg, #43A047, #2E7D32); }
.stat-warning { background: linear-gradient(135deg, #FB8C00, #EF6C00); }
.stat-danger  { background: linear-gradient(135deg, #E53935, #C62828); }
.stat-info    { background: linear-gradient(135deg, #039BE5, #0277BD); }
.stat-purple  { background: linear-gradient(135deg, #8E24AA, #6A1B9A); }

/* ==========================================================================
   TABLES
   ========================================================================== */

table.dataTable, .table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0;
}

.table thead th,
table.dataTable thead th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-bg-alt) !important;
    padding: 12px 16px;
    vertical-align: middle;
}

.table tbody td,
table.dataTable tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13.5px;
    border-top: 1px solid var(--border);
    border-bottom: none;
}

.table tbody tr:hover,
table.dataTable tbody tr:hover { background: #F5F9FF; }

.table-striped tbody tr:nth-of-type(odd) { background: #FAFCFF; }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    outline: none;
    transition: var(--trans);
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 2px !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
    color: var(--text-dark) !important;
    transition: var(--trans);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-bg) !important;
    color: var(--primary-dark) !important;
    border-color: var(--primary-bg-alt) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #1565C0, #0D47A1) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    border: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--trans);
    cursor: pointer;
}
.btn i { font-size: 13px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

.btn-primary { background: linear-gradient(135deg, #1565C0, #0D47A1); color: #fff; box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, #0D47A1, #1A237E); color: #fff; box-shadow: 0 4px 10px rgba(21, 101, 192, 0.4); }

.btn-success { background: linear-gradient(135deg, #43A047, #2E7D32); color: #fff; box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3); }
.btn-success:hover { background: linear-gradient(135deg, #2E7D32, #1B5E20); color: #fff; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.4); }

.btn-danger { background: linear-gradient(135deg, #E53935, #C62828); color: #fff; box-shadow: 0 2px 6px rgba(198, 40, 40, 0.3); }
.btn-danger:hover { background: linear-gradient(135deg, #C62828, #B71C1C); color: #fff; box-shadow: 0 4px 10px rgba(198, 40, 40, 0.4); }

.btn-warning { background: linear-gradient(135deg, #FB8C00, #EF6C00); color: #fff; box-shadow: 0 2px 6px rgba(239, 108, 0, 0.3); }
.btn-warning:hover { background: linear-gradient(135deg, #EF6C00, #E65100); color: #fff; box-shadow: 0 4px 10px rgba(239, 108, 0, 0.4); }

.btn-info { background: linear-gradient(135deg, #039BE5, #0277BD); color: #fff; box-shadow: 0 2px 6px rgba(2, 119, 189, 0.3); }
.btn-info:hover { background: linear-gradient(135deg, #0277BD, #01579B); color: #fff; }

.btn-secondary { background: #ECEFF1; color: var(--text-dark); }
.btn-secondary:hover { background: #CFD8DC; color: var(--text-dark); }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.3);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--trans);
    background: #fff;
    color: var(--text-dark);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
    outline: none;
}

.form-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }

.input-group-text {
    background: #FAFBFC;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12); border-color: var(--primary-light); }

textarea.form-control { resize: vertical; min-height: 80px; }

.select2-container--bootstrap-5 .select2-selection {
    min-height: 42px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12) !important;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warning { background: #FFF3E0; color: #E65100; }
.badge-primary { background: #E3F2FD; color: #1565C0; }
.badge-danger  { background: #FFEBEE; color: #C62828; }
.badge-info    { background: #E1F5FE; color: #0277BD; }
.badge-pending { background: #FFF8E1; color: #F9A825; }
.badge-muted   { background: #FAFAFA; color: #9E9E9E; }

.badge-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 700; }

.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ==========================================================================
   ALERTS
   ========================================================================== */

.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 13.5px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; }
.alert-danger  { background: #FFEBEE; color: #C62828; }
.alert-warning { background: #FFF3E0; color: #E65100; }
.alert-info    { background: #E1F5FE; color: #0277BD; }

/* ==========================================================================
   SIDEBAR OVERLAY / MOBILE
   ========================================================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #B0BEC5; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #90A4AE; }

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A237E 0%, #0D47A1 50%, #1565C0 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-wrapper::before, .login-wrapper::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}
.login-wrapper::before { width: 400px; height: 400px; top: -100px; right: -100px; }
.login-wrapper::after { width: 300px; height: 300px; bottom: -80px; left: -80px; }

.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease;
}
.login-card .login-header { text-align: center; margin-bottom: 28px; }
.login-card .login-header .logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.4);
}
.login-card h3 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.login-card .subtitle { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in { animation: fadeIn 0.4s ease; }
.slide-up { animation: slideUp 0.5s ease; }

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-bg);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   HELPERS
   ========================================================================== */

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }

.bg-primary-soft { background: var(--primary-bg); }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ==========================================================================
   POS / KASIR
   ========================================================================== */

.pos-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: calc(100vh - var(--navbar-height) - 48px);
}
.pos-products {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}
.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.pos-product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--trans);
}
.pos-product-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.pos-product-card .name {
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pos-product-card .price { color: var(--primary); font-weight: 700; font-size: 14px; }

.pos-cart {
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pos-cart-header {
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    color: #fff;
    padding: 16px 20px;
    font-weight: 700;
}
.pos-cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.pos-cart-footer {
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    background: #FAFCFF;
}
.pos-cart-total { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.pos-pay-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 700;
    margin-top: 12px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .hamburger { display: flex; }
    .search-box { min-width: 200px; }
}

@media (max-width: 575.98px) {
    .content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .search-box { display: none; }
    .notif-dropdown { width: 300px; }
    .pos-layout { grid-template-columns: 1fr; height: auto; }
    .pos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .stat-card .stat-value { font-size: 22px; }
    .page-title { font-size: 18px; }
}

@media print {
    .sidebar, .topbar, .footer, .no-print { display: none !important; }
    .main-area { margin-left: 0; }
    .content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #DDD; }
}
