﻿/* ================================================================
   AMC Reminder — Enterprise Design System v2.0
   Inspired by Linear, Vercel, and modern SaaS dashboards
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    /* Brand */
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;

    /* Neutrals */
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Status */
    --success:  #10b981;
    --warning:  #f59e0b;
    --danger:   #ef4444;
    --info:     #06b6d4;

    /* Sidebar */
    --sidebar-bg:        #0f172a;
    --sidebar-width:     240px;
    --sidebar-text:      rgba(148,163,184,1);
    --sidebar-hover-bg:  rgba(99,102,241,0.12);
    --sidebar-active-bg: #6366f1;
    --sidebar-heading:   rgba(100,116,139,0.7);

    /* Topnav */
    --topnav-height: 60px;
    --topnav-bg:     #ffffff;
    --topnav-border: #e2e8f0;

    /* Layout */
    --content-bg: #f1f5f9;
    --card-bg:    #ffffff;
    --card-radius: 12px;
    --card-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 4px 16px rgba(15,23,42,0.04);
    --card-shadow-hover: 0 4px 24px rgba(15,23,42,0.12);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--content-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

/* ================================================================
   TOPNAV
   ================================================================ */
.sb-topnav {
    height: var(--topnav-height);
    background: var(--topnav-bg) !important;
    border-bottom: 1px solid var(--topnav-border);
    box-shadow: 0 1px 0 rgba(15,23,42,0.04);
    z-index: 1039;
    padding: 0 1.25rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
}

.sb-topnav .navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900) !important;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-topnav .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.sb-topnav .nav-link { color: var(--gray-600) !important; }
.sb-topnav .nav-link:hover { color: var(--gray-900) !important; }

#sidebarToggle {
    color: var(--gray-500);
    background: none;
    border: none;
    padding: 0.4rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
#sidebarToggle:hover { background: var(--gray-100); color: var(--gray-800); }

/* ── Topnav Dropdown ─────────────────────────────────────────── */
.topnav-dropdown .dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12);
    padding: 0.5rem;
    min-width: 200px;
}

.topnav-dropdown .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.12s;
}
.topnav-dropdown .dropdown-item:hover { background: var(--gray-100); color: var(--gray-900); }
.topnav-dropdown .dropdown-item.text-danger:hover { background: #fef2f2; }

.topnav-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.8125rem;
}

.topnav-dropdown .dropdown-divider { margin: 0.25rem 0; border-color: var(--gray-200); }

/* User pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 40px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.15s;
    color: var(--gray-700);
    font-size: 0.8125rem;
    font-weight: 500;
}
.user-pill:hover { background: white; border-color: var(--gray-300); box-shadow: 0 2px 8px rgba(15,23,42,0.08); }

/* ================================================================
   SIDEBAR — Premium Glassmorphic
   ================================================================ */
#layoutSidenav {
    display: flex;
    padding-top: var(--topnav-height);
    min-height: 100vh;
}

#layoutSidenav_nav {
    flex-basis: var(--sidebar-width);
    flex-shrink: 0;
    min-height: calc(100vh - var(--topnav-height));
    transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), flex-basis 0.2s cubic-bezier(0.4,0,0.2,1);
    z-index: 1038;
    position: fixed;
    top: var(--topnav-height);
    left: 0;
    height: calc(100vh - var(--topnav-height));
}

#layoutSidenav_content {
    flex-grow: 1;
    min-width: 0;
    min-height: calc(100vh - var(--topnav-height));
    margin-left: var(--sidebar-width);
    transition: margin-left 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* Collapsed */
.sb-sidenav-toggled #layoutSidenav_nav {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sb-sidenav-toggled #layoutSidenav_content {
    margin-left: 0;
}

/* sb-nav-fixed: body offset so content clears the fixed topnav */
body.sb-nav-fixed main { min-height: calc(100vh - var(--topnav-height)); }

/* ── Scrollbar ─────────────────────────────────────────────── */
.sb-sidenav::-webkit-scrollbar { width: 4px; }
.sb-sidenav::-webkit-scrollbar-track { background: transparent; }
.sb-sidenav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

.sb-sidenav {
    height: 100%;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #b0bac9 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    width: var(--sidebar-width);
    position: relative;
    border-right: 1px solid #94a3b8;
    box-shadow: 2px 0 16px rgba(15,23,42,0.12), inset -1px 0 0 rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}

/* Glossy overlay effect */
.sb-sidenav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Nav items ─────────────────────────────────────────────── */
.sb-sidenav-menu { flex: 1; padding: 0.5rem 0.5rem 0; position: relative; z-index: 1; }
.sb-sidenav-menu .nav { flex-direction: column; gap: 1px; }

.sb-sidenav-menu-heading {
    padding: 0.75rem 1rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.sb-sidenav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    border-radius: 8px;
    margin: 0.1rem 0.65rem;
    position: relative;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.sb-sidenav-menu .nav-link:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(238,242,255,0.9) 100%);
    color: #312e81;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.95);
    transform: translateX(3px);
    font-weight: 700;
}
.sb-sidenav-menu .nav-link.active {
    color: #312e81;
    background: linear-gradient(135deg, rgba(238,242,255,0.98) 0%, rgba(224,231,255,0.95) 100%);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25), inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(99,102,241,0.15);
    font-weight: 700;
    border-left: 3px solid #4f46e5;
    padding-left: calc(1rem - 3px);
}

.sb-sidenav-menu .nav-link .sb-nav-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border-radius: 9px;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 6px rgba(15,23,42,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Colorful icon variants */
.sb-nav-link-icon-indigo {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #6366f1;
}

.sb-nav-link-icon-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #3b82f6;
}

.sb-nav-link-icon-emerald {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #10b981;
}

.sb-nav-link-icon-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #a855f7;
}

.sb-nav-link-icon-slate {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
}

.sb-nav-link-icon-orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #ea580c;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-indigo {
    background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
    color: #4f46e5;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-blue {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    color: #2563eb;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-emerald {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    color: #059669;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-purple {
    background: linear-gradient(135deg, #d8b4fe 0%, #c084fc 100%);
    color: #9333ea;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-slate {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #475569;
}

.sb-sidenav-menu .nav-link:hover .sb-nav-link-icon-orange {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #c2410c;
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16,185,129,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(168,85,247,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.sb-sidenav-menu .nav-link.active .sb-nav-link-icon-slate {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(100,116,139,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ── Collapsed Sidebar (Icon Only) ──────────────────────────── */
.sb-sidenav-toggled #layoutSidenav_nav {
    transform: translateX(0);
}

.sb-sidenav-toggled .sb-sidenav {
    width: 80px;
}

.sb-sidenav-toggled .sb-sidenav-menu .nav-link {
    justify-content: center;
    padding: 0.875rem 0.5rem;
    margin: 0.125rem 0.5rem;
}

.sb-sidenav-toggled .sb-sidenav-menu .nav-link .nav-link-text {
    display: none;
}

.sb-sidenav-toggled .sb-sidenav-menu-heading {
    display: none;
}

.sb-sidenav-toggled .sb-sidenav-menu .nav-link.active {
    border-left: none;
    padding-left: 0.5rem;
}

.sb-sidenav-toggled #layoutSidenav_content {
    margin-left: 80px;
}

/* Tooltip for collapsed menu items */
.sb-sidenav-toggled .sb-sidenav-menu .nav-link {
    position: relative;
}

.sb-sidenav-toggled .sb-sidenav-menu .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #1e293b;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    pointer-events: none;
}

/* ── Sidebar footer ─────────────────────────────────────────── */
.sb-sidenav-footer {
    padding: 0.875rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0.5rem 0 0;
    position: relative;
    z-index: 1;
}

.sb-sidenav-footer .user-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.sb-sidenav-footer .user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 140px;
}

.sb-sidenav-footer .user-role {
    font-size: 0.625rem;
    color: rgba(99,102,241,0.6);
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}

/* ================================================================
   BREADCRUMB (In Navbar)
   ================================================================ */
.breadcrumb-bar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}

.page-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Page Title Section (below breadcrumb) */
.page-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.page-title-main {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title-main i {
    font-size: 1.5rem;
    color: #6366f1;
}

.page-actions-wrapper {
    display: flex;
    gap: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    font-weight: 400;
    color: #cbd5e1;
    font-size: 0.8125rem;
    padding: 0 0.625rem;
}

.breadcrumb-item a {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #6366f1;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06), 0 8px 24px rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
    pointer-events: none;
}

.card:hover { 
    box-shadow: 0 8px 32px rgba(15,23,42,0.08), 0 2px 8px rgba(99,102,241,0.06), inset 0 1px 0 rgba(255,255,255,0.9); 
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.card-header h5, .card-header h6 { margin: 0; }

.card-body { padding: 1.25rem; }
.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-radius: 0 0 var(--card-radius) var(--card-radius) !important;
    padding: 0.875rem 1.25rem;
}

/* ── Table Card ─────────────────────────────────────────────── */
.table-card { border-radius: var(--card-radius); overflow: hidden; }
.table-card-header {
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.table-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* ================================================================
   TABLES
   ================================================================ */
.table {
    font-size: 0.8125rem;
    color: var(--gray-700);
    margin: 0;
}

.table thead th {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.table tbody tr:last-child td { border-bottom: none; }

.table-hover tbody tr:hover td {
    background: var(--gray-50);
}

/* ================================================================
   BADGES
   ================================================================ */
.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.3em 0.65em;
    border-radius: 6px;
}

.badge-active   { background: #d1fae5; color: #065f46; }
.badge-expiring { background: #fef3c7; color: #92400e; }
.badge-expired  { background: #fee2e2; color: #991b1b; }
.badge-inactive { background: var(--gray-100); color: var(--gray-600); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.45rem 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s;
    cursor: pointer;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 5px;
    gap: 0.25rem;
}

.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.6rem 1.25rem; font-size: 0.9375rem; }

.btn-primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: white;
}
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: white; }

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}
.btn-success:hover { background: #059669; border-color: #059669; color: white; }

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: white; }

.btn-warning {
    background: var(--warning);
    border-color: var(--warning);
    color: white;
}
.btn-warning:hover { background: #d97706; border-color: #d97706; color: white; }

.btn-outline-primary {
    border-color: var(--brand-200);
    color: var(--brand-600);
}
.btn-outline-primary:hover {
    background: var(--brand-50);
    border-color: var(--brand-400, #818cf8);
    color: var(--brand-700);
}

.btn-outline-secondary {
    border-color: var(--gray-200);
    color: var(--gray-600);
}
.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-outline-success {
    border-color: #a7f3d0;
    color: #059669;
}
.btn-outline-success:hover { background: #ecfdf5; }

.btn-outline-danger {
    border-color: #fecaca;
    color: #dc2626;
}
.btn-outline-danger:hover { background: #fef2f2; }

.btn-outline-warning {
    border-color: #fde68a;
    color: #d97706;
}
.btn-outline-warning:hover { background: #fffbeb; }

/* ================================================================
   STAT / KPI CARDS
   ================================================================ */
.stat-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 6px 24px rgba(15,23,42,0.06);
    background: white;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--brand-500));
    border-radius: 3px 3px 0 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.08);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.stat-body { flex: 1; min-width: 0; }

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    letter-spacing: -0.75px;
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-top: 0.15rem;
}

/* ── Modern Stat Cards (Light Professional) ─────────────────── */
.stat-card-modern {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(15,23,42,0.08), 0 2px 8px rgba(15,23,42,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
    min-height: 120px;
    height: 100%;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.stat-card-modern::after {
    content: '';
    position: absolute;
    bottom: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.stat-card-modern:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(15,23,42,0.12), 0 4px 16px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
}

.stat-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.6);
}

.stat-card-modern:hover .stat-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.7);
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value-modern {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.75px;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-label-modern {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.85);
    position: relative;
    z-index: 1;
}

/* Color variants with vibrant gradients */
.stat-card-indigo {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%);
    box-shadow: 0 4px 16px rgba(99,102,241,0.35), 0 2px 8px rgba(99,102,241,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}
.stat-card-indigo:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,0.45), 0 4px 16px rgba(99,102,241,0.3), inset 0 1px 0 rgba(255,255,255,0.7);
}
.stat-card-indigo .stat-icon-modern {
    color: white;
}

.stat-card-emerald {
    background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%);
    box-shadow: 0 4px 16px rgba(16,185,129,0.35), 0 2px 8px rgba(16,185,129,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}
.stat-card-emerald:hover {
    box-shadow: 0 12px 40px rgba(16,185,129,0.45), 0 4px 16px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.7);
}
.stat-card-emerald .stat-icon-modern {
    color: white;
}

.stat-card-amber {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%);
    box-shadow: 0 4px 16px rgba(245,158,11,0.35), 0 2px 8px rgba(245,158,11,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}
.stat-card-amber:hover {
    box-shadow: 0 12px 40px rgba(245,158,11,0.45), 0 4px 16px rgba(245,158,11,0.3), inset 0 1px 0 rgba(255,255,255,0.7);
}
.stat-card-amber .stat-icon-modern {
    color: white;
}

.stat-card-rose {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 50%, #fb7185 100%);
    box-shadow: 0 4px 16px rgba(244,63,94,0.35), 0 2px 8px rgba(244,63,94,0.2), inset 0 1px 0 rgba(255,255,255,0.6);
}
.stat-card-rose:hover {
    box-shadow: 0 12px 40px rgba(244,63,94,0.45), 0 4px 16px rgba(244,63,94,0.3), inset 0 1px 0 rgba(255,255,255,0.7);
}
.stat-card-rose .stat-icon-modern {
    color: white;
}

/* ── Premium Gradient Stat Cards (Legacy) ─────────────────────────────── */
.stat-card-gradient {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    color: white;
}

.stat-card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at bottom right, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.stat-card-gradient:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.stat-card-gradient .stat-icon-glass {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
}

.stat-card-gradient .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.75px;
}

.stat-card-gradient .stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.15rem;
}

/* Gradient flavors */
.stat-gradient-indigo { background: linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #818cf8 100%); box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
.stat-gradient-emerald { background: linear-gradient(135deg, #047857 0%, #10b981 50%, #34d399 100%); box-shadow: 0 4px 20px rgba(16,185,129,0.3); }
.stat-gradient-amber { background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #fbbf24 100%); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }
.stat-gradient-rose { background: linear-gradient(135deg, #be123c 0%, #f43f5e 50%, #fb7185 100%); box-shadow: 0 4px 20px rgba(244,63,94,0.3); }
.stat-gradient-cyan { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #22d3ee 100%); box-shadow: 0 4px 20px rgba(6,182,212,0.3); }
.stat-gradient-violet { background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a78bfa 100%); box-shadow: 0 4px 20px rgba(139,92,246,0.3); }

/* ── Welcome Banner ──────────────────────────────────────────── */
.welcome-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(129,140,248,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-banner h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.welcome-banner .welcome-date {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
}

/* ── Section Title ───────────────────────────────────────────── */
.dashboard-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section-title i {
    color: #6366f1;
    font-size: 0.875rem;
}

/* ── Enhanced Card Styles ────────────────────────────────────── */
.card-premium {
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04), 0 8px 32px rgba(15,23,42,0.06);
    background: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid rgba(226,232,240,0.6);
}

.card-premium:hover {
    box-shadow: 0 12px 48px rgba(99,102,241,0.12);
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.2);
}

.card-premium .card-header {
    background: linear-gradient(to right, #f8fafc, white);
    border-bottom: 2px solid #e0e7ff;
    padding: 1.25rem 1.5rem;
}

/* ── Progress Indicator Badge ────────────────────────────────── */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.trend-badge-up { background: #d1fae5; color: #065f46; }
.trend-badge-down { background: #fee2e2; color: #991b1b; }

/* ================================================================
   AVATAR CIRCLES
   ================================================================ */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-circle-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-circle-lg {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

.form-control, .form-select {
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    color: var(--gray-800);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-400, #818cf8);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    outline: none;
}

.input-group-text {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.875rem;
}

.input-group-text.bg-light {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-500);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--brand-100);
    margin-bottom: 1rem;
    display: block;
}

.required-field::after {
    content: " *";
    color: var(--danger);
}

/* ================================================================
   DETAIL ITEMS (Customer detail view)
   ================================================================ */
.detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child { border-bottom: none; }

.detail-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    font-weight: 600;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* Modern Detail Items */
.detail-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    border-radius: 14px;
    border: 1px solid rgba(226,232,240,0.8);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

.detail-item-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.2);
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.detail-label-modern {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.detail-value-modern {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}

/* ================================================================
   RECEIPT STYLES
   ================================================================ */
.receipt-wrapper {
    max-width: 780px;
    margin: 0 auto;
    border-radius: var(--card-radius);
    overflow: hidden;
}

.receipt-header {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: left;
}

.receipt-header h4, .receipt-header p { color: white; }

/* ================================================================
   LOGIN PAGE — Modern Light Gradient Design
   ================================================================ */
.login-scene {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 25%, #ddd6fe 50%, #e9d5ff 75%, #fce7f3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Floating animated orbs - Light theme */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.login-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 70%);
    top: -15%; left: -10%;
    animation-duration: 14s;
}

.login-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(196,181,253,0.25), transparent 70%);
    bottom: -15%; right: -10%;
    animation-duration: 16s;
    animation-delay: -4s;
}

.login-orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,114,182,0.2), transparent 70%);
    top: 30%; right: 10%;
    animation-duration: 13s;
    animation-delay: -6s;
}

@keyframes orbFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -40px) scale(1.1); }
}

/* Center wrap: two cards side by side */
.login-center-wrap {
    display: flex;
    gap: 0;
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 2;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(99,102,241,0.15), 0 8px 24px rgba(99,102,241,0.08), 0 0 0 1px rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

/* Left: White sign-in card */
.login-card {
    width: 480px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(99,102,241,0.1);
}

/* Right: Glass info card */
.login-info-card {
    flex: 1;
    background: linear-gradient(160deg, rgba(99,102,241,0.08) 0%, rgba(167,139,250,0.06) 50%, rgba(244,114,182,0.04) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-info-inner { text-align: center; max-width: 360px; }

.login-info-hero {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem; color: white;
    box-shadow: 0 20px 50px rgba(99,102,241,0.35), 0 8px 20px rgba(139,92,246,0.2);
}

.login-info-title {
    font-size: 1.75rem; font-weight: 800; color: #1e293b;
    letter-spacing: -0.6px; margin-bottom: 0.875rem; line-height: 1.25;
}

.login-info-desc {
    font-size: 0.9375rem; color: #64748b;
    margin-bottom: 2.5rem; line-height: 1.7;
}

.login-features {
    display: flex; flex-direction: column; gap: 0.625rem; text-align: left;
}

.login-feature-pill {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 1rem 1.25rem; border-radius: 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(99,102,241,0.15);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 2px 8px rgba(99,102,241,0.06);
}

.login-feature-pill:hover {
    background: rgba(255,255,255,0.95);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.12);
}

.login-feature-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 0.875rem;
}

.login-feature-label { font-size: 0.875rem; font-weight: 600; color: #1e293b; }
.login-feature-sub { font-size: 0.75rem; color: #64748b; }

/* Login page typography */
.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    margin-bottom: 0.375rem;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-brand-mark {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 12px 32px rgba(99,102,241,0.35), 0 4px 12px rgba(139,92,246,0.2);
}

.login-form .form-control {
    padding: 0.625rem 0.875rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1.5px solid var(--gray-200);
    transition: all 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.login-form .input-group-text {
    border-radius: 10px 0 0 10px;
    border: 1.5px solid var(--gray-200);
    border-right: none;
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.9375rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    position: relative;
    overflow: hidden;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,0.45); color: white; }
.btn-login:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(99,102,241,0.3); }

.btn-toggle-pass {
    background: none;
    border: none;
    padding: 0 0.75rem;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
}
.btn-toggle-pass:hover { color: var(--gray-600); }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    font-size: 0.8125rem;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border-width: 1px;
}

.alert-danger  { background: #fff5f5; border-color: #fed7d7; color: #c53030; }
.alert-info    { background: #ebf8ff; border-color: #bee3f8; color: #2b6cb0; }
.alert-success { background: #f0fff4; border-color: #c6f6d5; color: #276749; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ================================================================
   MODALS
   ================================================================ */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-100); }

/* ================================================================
   DATATABLES OVERRIDES
   ================================================================ */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--brand-50) !important;
    border-color: var(--brand-200) !important;
    color: var(--brand-600) !important;
}

/* ================================================================
   SELECT2 OVERRIDES
   ================================================================ */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 0.75rem;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--brand-400, #818cf8);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* ================================================================
   TOASTR OVERRIDES
   ================================================================ */
.toast-top-right { top: 72px; right: 16px; }

#toast-container > div {
    border-radius: 10px !important;
    box-shadow: 0 4px 24px rgba(15,23,42,0.15) !important;
    font-size: 0.8125rem !important;
    font-family: var(--font-family) !important;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.font-monospace { font-family: 'SFMono-Regular', Consolas, monospace; }

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    #layoutSidenav_nav, .sb-topnav, .btn, nav, .no-print, footer { display: none !important; }
    #layoutSidenav_content { margin-left: 0 !important; }
    body { background: white !important; }
    .card { box-shadow: none !important; border: 1px solid #dee2e6 !important; border-radius: 4px !important; }
    .receipt-wrapper { max-width: 100%; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1199.98px) {
    :root { --sidebar-width: 220px; }
}

@media (max-width: 767.98px) {
    .stat-value { font-size: 1.35rem; }
    .stat-card-gradient .stat-value { font-size: 1.5rem; }

    #layoutSidenav_nav {
        position: fixed;
        top: var(--topnav-height);
        left: 0;
        height: calc(100% - var(--topnav-height));
        transform: translateX(calc(-1 * var(--sidebar-width)));
        z-index: 1038;
    }

    .sb-sidenav-toggled #layoutSidenav_nav {
        transform: translateX(0);
    }

    #layoutSidenav_content { margin-left: 0; }

    .login-scene { padding: 1rem; }
    .login-center-wrap { flex-direction: column; max-width: 440px; }
    .login-info-card { display: none !important; }
    .login-card { width: 100% !important; border-radius: 24px !important; }

    .welcome-banner { padding: 1.5rem; border-radius: 16px; }
    .welcome-banner h2 { font-size: 1.25rem; }

    .page-header-wrap { flex-direction: column; padding: 1rem 0 0.75rem; }
}
