/* ============================================================================
   TAQUEROS POS SYSTEM - CssStyles.css
   THEME: Modern Mexican - Professional Salsa Palette
   Primary: Deep Red (#B91C1C) | Accent: Corn Yellow (#F59E0B)
                                | Success: Salsa Green (#10B981)
   NO grays except for disabled states.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- Mexican Modern Palette (PROFESSIONAL, NO GRAYS) --- */
    --primary:        #B91C1C;          /* Deep flag red */
    --primary-light:  #DC2626;          /* Brighter red */
    --primary-dark:   #7F1D1D;          /* Darkest red */
    --primary-bg:     #FEF2F2;          /* Very light red bg */

    --secondary:      #F59E0B;          /* Corn yellow / accent */
    --secondary-light:#FBBF24;          /* Lighter yellow */
    --secondary-dark: #B45309;          /* Dark amber */

    --accent:         #10B981;          /* Salsa verde */
    --accent-light:   #34D399;
    --accent-dark:    #047857;

    --success:        #10B981;          /* Green */
    --success-bg:     #ECFDF5;
    --success-text:   #047857;

    --danger:         #DC2626;          /* Red */
    --danger-bg:      #FEE2E2;
    --danger-text:    #991B1B;

    --warning:        #F59E0B;          /* Amber */
    --warning-bg:     #FEF3C7;
    --warning-text:   #92400E;

    --info:           #2563EB;          /* Blue */
    --info-bg:        #DBEAFE;
    --info-text:      #1E40AF;

    /* --- Backgrounds (warm cream, NO grays) --- */
    --bg-main:        #FFFBF5;          /* Very soft cream */
    --bg-card:        #FFFFFF;          /* White cards */
    --bg-soft:        #FFF7ED;          /* Soft warm bg */
    --bg-sidebar:     #7F1D1D;          /* Deep red sidebar */
    --bg-sidebar-hover: rgba(255,255,255,0.15);
    --bg-sidebar-active: #F59E0B;       /* Corn yellow active */

    /* --- Text (warm dark, NO grays) --- */
    --text-primary:   #1F1410;          /* Almost black with warm tint */
    --text-secondary: #44211A;          /* Warm dark brown */
    --text-muted:     #7C2D12;          /* Warm brown */
    --text-white:     #FFFFFF;
    --text-sidebar:   #FECACA;          /* Light pink-red */

    /* --- Borders (warm beige, NO grays) --- */
    --border:         #FED7AA;          /* Soft peach border */
    --border-light:   #FFEDD5;          /* Very light peach */
    --border-strong:  #FDBA74;          /* Stronger peach */

    /* --- DISABLED states only (the only place gray is allowed) --- */
    --disabled-bg:    #E5E7EB;
    --disabled-text:  #9CA3AF;
    --disabled-border:#D1D5DB;

    /* --- Shadows (warm red-tinted) --- */
    --shadow-sm:  0 1px 3px rgba(127,29,29,0.08);
    --shadow:     0 2px 8px rgba(127,29,29,0.10), 0 1px 3px rgba(127,29,29,0.06);
    --shadow-md:  0 4px 14px rgba(127,29,29,0.12), 0 2px 4px rgba(127,29,29,0.06);
    --shadow-lg:  0 8px 24px rgba(127,29,29,0.15), 0 4px 8px rgba(127,29,29,0.08);

    /* --- Radius --- */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    /* --- Layout --- */
    --sidebar-width: 250px;
    --topbar-height: 64px;

    /* --- Fonts --- */
    --font-body:    'Inter', system-ui, sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { text-decoration: none; color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR — Deep Red Gradient ===== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #991B1B 0%, #7F1D1D 50%, #5F0F0F 100%);
    position: fixed; top: 0; left: 0; height: 100vh;
    z-index: 100;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: 2px 0 16px rgba(127,29,29,0.30);
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 3px; }

.sidebar-header {
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(180deg, rgba(0,0,0,0.10), transparent);
}
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.sidebar-logo .logo-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,158,11,0.40);
    border: 1.5px solid #B45309;
}
.sidebar-logo .logo-text {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.30);
    overflow: hidden;
}
.sidebar-logo .logo-text b { display: block; }
.sidebar-logo .logo-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}

.sidebar-nav { flex: 1; padding: 14px 10px; }
.nav-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #FED7AA;
    padding: 14px 12px 6px;
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.18);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.nav-section-title:first-of-type { border-top: none; margin-top: 0; padding-top: 6px; }

.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px;
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.20);
}
.nav-item:hover { background: rgba(255,255,255,0.15); color: #FFFFFF; }
.nav-item.active {
    background: var(--bg-sidebar-active);
    color: #5F1A0A;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 3px 10px rgba(245,158,11,0.40);
}
.nav-item .nav-icon {
    width: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px;
    position: sticky; top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h2 {
    font-size: 1.18rem; font-weight: 700;
    color: var(--primary);
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.btn-menu-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.4rem; cursor: pointer;
    color: var(--primary); padding: 4px;
}
.content-area {
    padding: 26px;
    flex: 1;
}

/* ===== CARDS — Soft & Rounded ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
}
.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEE2E2 100%);
}
.card-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
}
.card-body { padding: 22px; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-soft);
}

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    display: flex; align-items: flex-start; gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.stat-icon.red    { background: var(--primary-bg);   color: var(--primary); }
.stat-icon.yellow { background: var(--warning-bg);   color: var(--secondary-dark); }
.stat-icon.green  { background: var(--success-bg);   color: var(--success-text); }
.stat-icon.blue   { background: var(--info-bg);      color: var(--info-text); }
.stat-icon.orange { background: #FFEDD5;             color: #C2410C; }
.stat-icon.purple { background: #F3E8FF;             color: #7E22CE; }

.stat-info h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-info .stat-number {
    font-family: var(--font-heading);
    font-size: 1.7rem; font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2; margin-top: 4px;
}
.stat-info .stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== BUTTONS — Rounded & Confident ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(185,28,28,0.30);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
    color: #fff;
    box-shadow: 0 5px 14px rgba(185,28,28,0.40);
}

.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(16,185,129,0.30);
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(220,38,38,0.30);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(245,158,11,0.30);
}
.btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 3px 10px rgba(59,130,246,0.30);
}
.btn-info:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-soft);
    color: var(--primary);
    border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.btn-sm  { padding: 6px 12px; font-size: 0.78rem; border-radius: 8px; }
.btn-lg  { padding: 13px 26px; font-size: 1rem; border-radius: 12px; }
.btn-xl  { padding: 16px 32px; font-size: 1.08rem; border-radius: 14px; }

/* Disabled state — only place we use gray */
.btn:disabled,
.btn.disabled {
    background: var(--disabled-bg) !important;
    color: var(--disabled-text) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    border-color: var(--disabled-border) !important;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    background: #FFFDF9;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
/* Focus global: green tint to confirm "ready to type" */
.form-control:focus {
    outline: none;
    background: #ECFDF5 !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.18) !important;
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.55; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B91C1C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
/* Disabled inputs — only place gray is allowed */
.form-control:disabled,
.form-control[readonly] {
    background: var(--disabled-bg);
    color: var(--disabled-text);
    cursor: not-allowed;
    border-color: var(--disabled-border);
}

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    background: var(--bg-card);
}
.data-table thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: linear-gradient(135deg, #FEF2F2 0%, #FEF3C7 100%);
    border-bottom: 2px solid var(--border-strong);
    white-space: nowrap;
}
.data-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #FFF7ED; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-active, .badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #6EE7B7;
}
.badge-inactive, .badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #FCA5A5;
}
.badge-id {
    background: #FEF3C7;
    color: #92400E;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid #FDE68A;
}
.badge-pending, .badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #FCD34D;
}
.badge-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid #93C5FD;
}
.badge-here {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}
.badge-togo {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid #93C5FD;
}
.badge-cash {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #6EE7B7;
}
.badge-card {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid #93C5FD;
}
.badge-zelle {
    background: #F3E8FF;
    color: #7E22CE;
    border: 1px solid #D8B4FE;
}

/* ===== ALERTS / FLASH ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 0.92rem;
    display: flex; align-items: center; gap: 10px;
    animation: slideDown 0.3s ease;
    font-weight: 500;
}
.alert i { font-size: 1.1rem; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-left: 4px solid var(--success); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger-text);  border-left: 4px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border-left: 4px solid var(--warning); }
.alert-info    { background: var(--info-bg);    color: var(--info-text);    border-left: 4px solid var(--info); }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(31,20,16,0.55);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.25s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 90%; max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
    border: 1px solid var(--border-light);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEE2E2 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header h3 { font-size: 1.05rem; color: var(--primary); }
.modal-close {
    background: none; border: none;
    font-size: 1.3rem; cursor: pointer;
    color: var(--text-muted); padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger-text); }
.modal-body { padding: 22px; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border-light);
    display: flex; gap: 10px; justify-content: flex-end;
}

/* ===== SEARCH & FILTERS ===== */
.search-bar { position: relative; }
.search-bar input { padding-left: 40px; }
.search-bar .search-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.filter-bar {
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap; margin-bottom: 18px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 4px; padding: 16px 0;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.pagination a {
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.pagination a:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
}
.pagination .active {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: #fff;
    border: 1px solid var(--primary-dark);
}

/* ===== LOGIN PAGE — Mexican Sunset ===== */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #7F1D1D 0%, #B91C1C 35%, #DC2626 65%, #F59E0B 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}
.login-page::before {
    content: ''; position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 70%);
    top: -150px; right: -150px;
    border-radius: 50%;
}
.login-page::after {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%);
    bottom: -150px; left: -150px;
    border-radius: 50%;
}
.login-box {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 38px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.40);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.5);
}
.login-box .logo-area { text-align: center; margin-bottom: 28px; }
.login-box .logo-area .logo-circle {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #FFFFFF;
    font-size: 32px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(220,38,38,0.40);
    border: 3px solid #FBBF24;
}
.login-box .logo-area h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.login-box .logo-area p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== USER AVATAR ===== */
.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #DC2626);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(220,38,38,0.30);
    border: 2px solid #FBBF24;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 14px;
    opacity: 0.45;
    color: var(--primary);
}
.empty-state h4 {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.empty-state p { font-size: 0.88rem; }
.action-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== FOOTER (Copyright bar across system) ===== */
.app-footer {
    margin-top: auto;
    padding: 18px 26px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF2F2 100%);
    border-top: 2px solid var(--border-light);
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-muted);
}
.app-footer .footer-line { margin: 3px 0; line-height: 1.7; }
.app-footer .footer-line.copyright {
    font-size: 0.92rem;
    color: var(--primary-dark);
    font-weight: 600;
}
.app-footer .footer-line.contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
    transition: color 0.15s;
}
.app-footer .footer-line.contact a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.app-footer .footer-line.contact i {
    color: var(--secondary-dark);
    margin-right: 4px;
}
.app-footer .footer-sep { color: var(--border-strong); margin: 0 8px; }

/* ===== UTILITIES ===== */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-success { color: var(--success-text); }
.text-danger  { color: var(--danger-text); }
.text-warning { color: var(--warning-text); }
.text-info    { color: var(--info-text); }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-white   { color: #fff; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.w-100 { width: 100%; }
.fw-bold { font-weight: 700; }
.fw-bolder { font-weight: 800; }
.nowrap { white-space: nowrap; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .btn-menu-toggle { display: block; }
    .content-area { padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .topbar { padding: 0 14px; }
    .card-header { flex-direction: column; align-items: flex-start; }
    .filter-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
@media print {
    .sidebar, .topbar, .btn, .action-btns, .filter-bar, .app-footer { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}
