/* ==========================================================================
   GS Inventory Suite - Modern Apex Design System v3.0
   Unified Executive Styling for Admin & Employee Portals
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Sinhala:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Font Families */
    --font-heading: 'Inter', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', 'Noto Sans Sinhala', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Primary Electric Indigo Brand Scale */
    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-300: #a5b4fc;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-800: #3730a3;
    --brand-900: #312e81;
    --brand-950: #1e1b4b;

    /* Neutral Slate Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #090d16;

    /* Semantic Status Accents */
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;

    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;

    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;

    /* Theme Layout Tokens */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --border-subtle: #f1f5f9;
    --border-light: #e2e8f0;
    --border-strong: #cbd5e1;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    /* Elevation & Multi-Layer Shadows */
    --shadow-2xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-xs: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 18px -3px rgba(15, 23, 42, 0.07), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 14px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 24px 50px -12px rgba(15, 23, 42, 0.15);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.22);
    --shadow-glow-emerald: 0 0 20px rgba(16, 185, 129, 0.22);

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Ultra-Crisp Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   AUTHENTICATION EXPERIENCE (index.html)
   ========================================================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(244, 63, 94, 0.05) 0px, transparent 50%),
        #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Ambient Floating Background Orbs */
.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
    animation: blob-float 12s ease-in-out infinite alternate;
}
.auth-blob-1 {
    width: 520px;
    height: 520px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.45), rgba(14, 165, 233, 0.35));
    top: -140px;
    left: -140px;
}
.auth-blob-2 {
    width: 480px;
    height: 480px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(129, 140, 248, 0.4));
    bottom: -140px;
    right: -140px;
    animation-delay: -6s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, 35px) scale(1.08); }
}

.auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.6);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.brand-icon-pod {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px auto;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.auth-header.text-center {
    text-align: center;
    margin-bottom: 26px;
}

/* Left Hero Section */
.auth-hero {
    flex: 1.15;
    background: linear-gradient(150deg, #090d16 0%, #111827 35%, #1e1b4b 75%, #312e81 100%);
    color: #ffffff;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.35;
    pointer-events: none;
}

.auth-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e0e7ff;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-main {
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.hero-main h1 {
    color: #ffffff;
    font-size: 2.35rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero-main h1 span {
    background: linear-gradient(120deg, #93c5fd 0%, #c7d2fe 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-main p {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 26px;
}

/* Floating Metrics Showcase Card */
.hero-stats-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-stats-item {
    display: flex;
    flex-direction: column;
}

.hero-stats-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero-stats-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.hero-footer {
    position: relative;
    z-index: 2;
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* Centered Form Section */
.auth-form-container {
    width: 100%;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    position: relative;
}

.auth-form-box {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-form-box.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 1.85rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 800;
}

.auth-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Modern Inputs & Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 7px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 15px;
    color: var(--slate-400);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: var(--slate-400);
    font-size: 0.95rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    border-radius: var(--radius-sm);
}

.input-icon-right:hover {
    color: var(--slate-700);
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: #f8fafc;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:hover {
    border-color: var(--slate-300);
    background: #ffffff;
}

.form-input:focus {
    background: #ffffff;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-input:focus ~ .input-icon-left {
    color: var(--brand-600);
}

/* Modern Primary Buttons */
.btn-primary {
    width: 100%;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-800) 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
    transform: translateY(-1.5px);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-switch {
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 24px;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM (Fixed Top Right)
   ========================================================================== */
#toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 420px !important;
    width: calc(100% - 48px) !important;
    pointer-events: none !important;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px -4px rgba(15, 23, 42, 0.16), 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.06);
    pointer-events: auto;
    animation: toast-slide-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
    border-left: 5px solid var(--slate-400);
}

.toast.toast-hide {
    animation: toast-slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(110%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(110%) scale(0.95);
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.toast-close {
    background: none;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 3px;
    border-radius: var(--radius-xs);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--slate-800);
}

/* Toast Color Variants */
.toast-success {
    border-left-color: var(--emerald-500);
}
.toast-success .toast-icon {
    color: var(--emerald-600);
}

.toast-error {
    border-left-color: var(--rose-500);
}
.toast-error .toast-icon {
    color: var(--rose-600);
}

.toast-warning {
    border-left-color: var(--amber-500);
}
.toast-warning .toast-icon {
    color: var(--amber-600);
}

.toast-info {
    border-left-color: var(--brand-600);
}
.toast-info .toast-icon {
    color: var(--brand-600);
}

/* ==========================================================================
   MODAL DIALOG SYSTEM
   ========================================================================== */
.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.custom-modal-backdrop.active {
    display: flex !important;
    opacity: 1 !important;
}

.custom-modal-box {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    width: 100%;
    max-width: 440px;
    padding: 26px;
    transform: scale(0.96) translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.custom-modal-backdrop.active .custom-modal-box {
    transform: scale(1) translateY(0);
}

.modal-icon-badge {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.modal-icon-danger {
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid var(--rose-100);
}

.modal-icon-warning {
    background: var(--amber-50);
    color: var(--amber-600);
    border: 1px solid var(--amber-100);
}

.modal-icon-primary {
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    padding: 9px 18px;
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.btn-danger {
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--rose-600), var(--rose-700));
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
    transition: all var(--transition-fast);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--rose-700), #9f1239);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
}

/* ==========================================================================
   PORTAL CARDS, KPIS, & NAVIGATION
   ========================================================================== */
.admin-card, .portal-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover, .portal-card:hover {
    box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

.admin-kpi, .kpi-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.admin-kpi::before, .kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.2s ease;
}

.admin-kpi:hover, .kpi-card:hover {
    transform: translateY(-2.5px);
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
    border-color: var(--slate-300);
}

.admin-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.admin-nav-btn.active {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

/* Filter Chips */
.filter-chip {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    background: #ffffff;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-2xs);
}

.filter-chip:hover {
    background: var(--slate-100);
    color: var(--slate-900);
    border-color: var(--slate-300);
}

.filter-chip.active {
    background: var(--brand-600);
    color: #ffffff;
    border-color: var(--brand-600);
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.32);
}

/* Status Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-pill-emerald {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid var(--emerald-200);
}

.status-pill-amber {
    background: var(--amber-50);
    color: var(--amber-700);
    border: 1px solid var(--amber-200);
}

.status-pill-rose {
    background: var(--rose-50);
    color: var(--rose-700);
    border: 1px solid var(--rose-200);
}

.status-pill-indigo {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}

/* Pulse Live Indicators */
.pulse-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--emerald-500);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: live-pulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
    vertical-align: middle;
}

@keyframes live-pulse {
    to {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.pulse-indicator-amber {
    background-color: var(--amber-500);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: live-pulse-amber 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes live-pulse-amber {
    to {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

/* User Avatar Pod */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Stepper Buttons for Quantity */
.stepper-btn {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-700);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-2xs);
}

.stepper-btn:hover:not(:disabled) {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-300);
    transform: translateY(-1px);
}

.stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: var(--slate-100);
}

/* Combobox Search Components */
.combobox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--slate-800);
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    border-bottom: 1px solid var(--slate-100);
}

.combobox-item:last-child {
    border-bottom: none;
}

.combobox-item:hover,
.combobox-item.is-highlighted {
    background-color: var(--brand-50);
    color: var(--brand-900);
}

.combobox-item.is-selected {
    background-color: var(--brand-100);
    color: var(--brand-900);
    font-weight: 600;
}

.combobox-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: var(--slate-50);
}

.combobox-mark {
    background-color: #fef08a;
    color: #854d0e;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 3px;
}

/* ==========================================================================
   PRINTABLE AUDIT & REQUISITION REPORTS
   ========================================================================== */
.print-only {
    display: none !important;
}

@media print {
    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-size: 10.5pt !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    aside,
    header,
    main,
    #sidebar,
    #toast-container,
    .custom-modal-backdrop,
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .print-document {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 10mm 14mm !important;
        background: #ffffff !important;
        color: #0f172a !important;
    }

    .print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 12px !important;
        margin-bottom: 16px !important;
    }

    .print-table th, .print-table td {
        border: 1px solid #cbd5e1 !important;
        padding: 7px 11px !important;
        font-size: 9.5pt !important;
    }

    .print-table th {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        text-align: left !important;
    }

    .page-break-inside-avoid {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    @page {
        size: A4 portrait;
        margin: 10mm 12mm;
    }
}

/* Responsive Breakpoints */
@media (max-width: 880px) {
    .auth-card {
        flex-direction: column;
        max-width: 490px;
    }
    
    .auth-hero {
        padding: 36px 28px;
        text-align: center;
        align-items: center;
    }

    .hero-features, .brand-badge, .hero-stats-card {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-form-container {
        padding: 36px 28px;
    }
}

/* Modern Template Utilities */
.kbd-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--slate-500);
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.modern-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all var(--transition-fast);
}

.table-row-hover {
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.table-row-hover:hover {
    background-color: rgba(238, 242, 255, 0.45);
}
