/* ==========================================================================
   GAMEZONE OS — LIGHT GLASSMORPHIC DESIGN SYSTEM 3.0 (ui-ux-pro-max)
   Style: Pure White & Frosted Glassmorphism with Smooth 3D Tactile Effects
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@700;800;900&display=swap');

:root {
    /* Color Palette - Clean Light Glass Canvas */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.78);
    --bg-surface: #ffffff;

    /* Borders & Dividers */
    --border-color: rgba(226, 232, 240, 0.9);
    --border-glass: rgba(255, 255, 255, 0.95);
    --border-accent: rgba(99, 102, 241, 0.35);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Typography Colors (Ultra High Contrast on Light Backgrounds) */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-accent: #4338ca;

    /* Accent & Brand Colors */
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.22);
    --cyan-accent: #0891b2;
    --cyan-glow: rgba(8, 145, 178, 0.22);
    --violet-accent: #7c3aed;
    --rose-accent: #e11d48;

    /* Status Indicators */
    --status-available: #059669;
    --status-available-glow: rgba(16, 185, 129, 0.25);
    --status-inuse: #dc2626;
    --status-inuse-glow: rgba(220, 38, 38, 0.25);
    --status-pending: #d97706;
    --status-pending-glow: rgba(217, 119, 6, 0.25);
    --status-offline: #475569;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    /* Light 3D Shadows & Layering */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-3d: 0 12px 30px -6px rgba(15, 23, 42, 0.08), 0 0 20px -3px rgba(99, 102, 241, 0.08);
    --shadow-3d-hover: 0 20px 42px -8px rgba(15, 23, 42, 0.14), 0 0 30px -2px rgba(99, 102, 241, 0.2);
    --shadow-inner-glow: inset 0 1px 1px 0 rgba(255, 255, 255, 1);

    /* Animation Timing */
    --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s var(--ease-spring);
    --transition-smooth: 0.4s var(--ease-spring);

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --brand-font: 'Orbitron', 'Chakra Petch', sans-serif;
    --mono-font: 'JetBrains Mono', 'Chakra Petch', monospace;
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

button, a, input, select, textarea, .btn, .nav-link, .stat-card, .station-card, .product-card, .tab-btn, .mobile-nav-item, .mobile-nav-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(248, 250, 252, 1) 0%, rgba(241, 245, 249, 1) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all form inputs, labels, and text elements are crisp and visible */
input, select, textarea {
    color: var(--text-primary) !important;
    background-color: #ffffff;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.85;
}

/* Custom Smooth Light Glass Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.25);
    border-radius: 4px;
    border: 2px solid rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   LAYOUT: SIDEBAR & MAIN CONTAINER (LIGHT GLASS)
   ========================================================================== */

.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: transparent;
}

.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.15rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    box-shadow: 4px 0 25px rgba(15, 23, 42, 0.04);
}

.sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--brand-font);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.brand span {
    background: linear-gradient(135deg, #0f172a 30%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.35));
    transition: transform 0.3s var(--ease-spring);
}

.brand:hover .brand-icon-logo {
    transform: scale(1.08) rotate(-3deg);
}

.brand-img-logo {
    height: 42px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: all 0.22s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.nav-link span {
    font-size: 1.15rem;
    transition: transform 0.2s var(--ease-spring);
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateX(4px);
}

.nav-link:hover span {
    transform: scale(1.18) translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%);
    color: var(--accent-color);
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--cyan-accent), var(--accent-color));
    box-shadow: 0 0 8px var(--accent-color);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
}

.top-bar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.content-body {
    padding: 2rem;
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   KPI & STAT CARDS (LIGHT FROSTED GLASS WITH 3D ELEVATION)
   ========================================================================== */

.kpi-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.kpi-card, .stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-3d), var(--shadow-inner-glow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.3s ease;
    transform: perspective(1000px) translateZ(0);
}

.kpi-card::before, .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--cyan-accent));
    opacity: 0.85;
}

.kpi-card:hover, .stat-card:hover {
    transform: perspective(1000px) translateY(-5px) scale(1.015);
    box-shadow: var(--shadow-3d-hover);
    border-color: rgba(99, 102, 241, 0.4);
}

.kpi-title, .stat-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-value, .stat-value {
    font-size: 2.1rem;
    font-weight: 900;
    font-family: var(--brand-font);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 40%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   STATION GRID & LIGHT 3D STATION CARDS
   ========================================================================== */

.station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.65rem;
}

.station-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-3d), var(--shadow-inner-glow);
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.3s;
    transform: perspective(1000px) translateZ(0);
}

.station-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.03), transparent 70%);
    pointer-events: none;
}

.station-card:hover {
    transform: perspective(1000px) translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-3d-hover);
}

/* Station Status Borders (Clean & High Contrast) */
.station-card.AVAILABLE {
    border-color: rgba(16, 185, 129, 0.35);
    border-top: 4px solid var(--status-available);
}
.station-card.AVAILABLE:hover {
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 0 24px -2px var(--status-available-glow);
    border-color: var(--status-available);
}

.station-card.IN_USE {
    border-color: rgba(239, 68, 68, 0.35);
    border-top: 4px solid var(--status-inuse);
}
.station-card.IN_USE:hover {
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 0 28px -2px var(--status-inuse-glow);
    border-color: var(--status-inuse);
}

.station-card.PAYMENT_PENDING {
    border-color: rgba(245, 158, 11, 0.35);
    border-top: 4px solid var(--status-pending);
}
.station-card.PAYMENT_PENDING:hover {
    box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 0 24px -2px var(--status-pending-glow);
    border-color: var(--status-pending);
}

.station-card.OFFLINE {
    border-color: rgba(100, 116, 139, 0.3);
    border-top: 4px solid var(--status-offline);
    opacity: 0.85;
}

.station-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.15rem;
}

.station-name {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--brand-font);
    color: var(--text-primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.station-body {
    margin-bottom: 1.5rem;
}

.station-timer {
    font-size: 2.1rem;
    font-weight: 800;
    font-family: var(--mono-font);
    color: #4f46e5;
    margin: 0.6rem 0;
    letter-spacing: 0.05em;
}

.station-timer.danger {
    color: #dc2626;
    animation: blinkText 1.2s infinite;
}

@keyframes blinkText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* ==========================================================================
   BUTTONS (TACTILE 3D ON LIGHT GLASS)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    transition: all 0.22s var(--ease-spring);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn:active {
    transform: translateY(2px) scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   FORM INPUTS & CONTROLS (LIGHT GLASS)
   ========================================================================== */

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.72rem 0.95rem;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s var(--ease-spring);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control,
select {
    background-color: #ffffff;
    color: var(--text-primary);
    cursor: pointer;
}

select option,
select optgroup {
    background-color: #ffffff !important;
    color: var(--text-primary) !important;
    padding: 10px 14px;
}

/* ==========================================================================
   MODALS (FROSTED LIGHT GLASS & BLUR ENTRANCE)
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-spring);
    padding: 1rem;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    padding: 2.2rem;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.18), 0 0 30px -5px rgba(99, 102, 241, 0.1), var(--shadow-inner-glow);
    transform: perspective(1000px) scale(0.94) translateY(18px);
    transition: transform 0.35s var(--ease-spring);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-backdrop.show .modal {
    transform: perspective(1000px) scale(1) translateY(0);
}

/* ==========================================================================
   TABS & NAVIGATION PILLS
   ========================================================================== */

.tabs-header {
    display: flex;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.75rem;
    padding-bottom: 0.2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.4rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.22s var(--ease-spring);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.08);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s var(--ease-spring);
}

.tab-pane.active {
    display: block;
}

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

/* ==========================================================================
   BADGES & STATUS CHIPS (CRISP ON LIGHT BACKGROUND)
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.badge.AVAILABLE, .badge-confirmed, .badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.IN_USE, .badge-cancelled, .badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.PAYMENT_PENDING, .badge-pending, .badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-completed, .badge-info, .badge-primary {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   DATA TABLES (LIGHT GLASS WITH CRISP BORDERS)
   ========================================================================== */

.table-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: var(--shadow-3d), var(--shadow-inner-glow);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.data-table th {
    background: #f1f5f9;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: rgba(99, 102, 241, 0.04);
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.alert-box {
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #3730a3;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #92400e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #991b1b;
}

/* ==========================================================================
   PASSWORD TOGGLE & UTILITIES
   ========================================================================== */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 2.75rem !important;
}

.btn-toggle-pwd {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    border-radius: 4px;
    transition: transform 0.2s var(--ease-spring), color 0.2s ease;
    user-select: none;
}

.btn-toggle-pwd:hover {
    transform: scale(1.18);
    color: var(--accent-color);
}

.btn-toggle-pwd:focus {
    outline: none;
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER, BOTTOM BAR & OVERLAY
   ========================================================================== */

.mobile-nav-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-spring);
    min-width: 42px;
    min-height: 42px;
}

.mobile-nav-toggle:hover, .mobile-nav-toggle:active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-close-sidebar {
    display: none;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-sidebar:hover, .btn-close-sidebar:active {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-smooth);
}

.sidebar-backdrop.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN & PERFORMANCE (TABLETS & PHONES)
   ui-ux-pro-max: Hardware acceleration, 60fps scrolling, 48dp touch targets
   ========================================================================== */

@media (max-width: 992px) {
    /* Stop GPU repaint stalls caused by fixed background canvas on mobile */
    body {
        background-attachment: scroll !important;
        background-image: 
            radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
            radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
            #f8fafc !important;
    }

    /* Streamline glassmorphic blurs on mobile GPUs to guarantee 60fps buttery scrolling */
    .sidebar, .top-bar, .kpi-card, .stat-card, .station-card, 
    .table-container, .alert-box, .modal, .cart-panel, .product-card, .rate-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
    }

    .app-container {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    /* Fast slide-in sidebar drawer */
    .sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 300px !important;
        max-width: 84vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        transform: translateX(-105%) !important;
        transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 12px 0 35px rgba(15, 23, 42, 0.18) !important;
        background: #ffffff !important;
        padding: 1.25rem 1.15rem !important;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-right: 1px solid var(--border-color) !important;
    }

    .sidebar.show-mobile {
        transform: translateX(0) !important;
    }

    .btn-close-sidebar {
        display: inline-flex !important;
    }

    .mobile-nav-toggle {
        display: inline-flex !important;
    }

    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        flex: none !important;
        min-width: 0 !important;
    }

    /* Native-feel Mobile Top Bar */
    .top-bar {
        height: auto !important;
        min-height: 56px !important;
        padding: 0.65rem 0.85rem !important;
        padding-top: calc(0.65rem + env(safe-area-inset-top, 0px)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 50 !important;
    }

    /* Content body with bottom navigation inset clearance */
    .content-body {
        padding: 1rem 0.85rem calc(76px + env(safe-area-inset-bottom, 0px)) 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fast tactile KPI Grid */
    .kpi-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        margin-bottom: 1.25rem !important;
    }

    .kpi-card, .stat-card {
        padding: 0.95rem 0.85rem !important;
        border-radius: var(--radius-sm) !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    .kpi-title, .stat-title {
        font-size: 0.72rem !important;
        margin-bottom: 0.35rem !important;
        letter-spacing: 0.04em !important;
    }

    .kpi-value, .stat-value {
        font-size: 1.45rem !important;
    }

    /* Gaming Stations Mobile Cards */
    .station-grid {
        grid-template-columns: 1fr !important;
        gap: 0.9rem !important;
    }

    .station-card {
        padding: 1.25rem 1rem !important;
        border-radius: var(--radius-sm) !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
        border: 1px solid var(--border-color) !important;
    }

    .station-header {
        margin-bottom: 0.75rem !important;
    }

    .station-name {
        font-size: 1.15rem !important;
    }

    .station-timer {
        font-size: 1.85rem !important;
        margin: 0.4rem 0 0.85rem 0 !important;
    }

    /* POS Mobile View */
    .pos-container {
        grid-template-columns: 100% !important;
        gap: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .product-card {
        padding: 0.65rem 0.55rem !important;
        border-radius: var(--radius-sm) !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .product-card:active {
        transform: scale(0.96) !important;
    }

    .cart-panel {
        position: static !important;
        max-height: none !important;
        border-radius: var(--radius-sm) !important;
        padding: 1rem 0.85rem !important;
        margin-top: 0.5rem !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cart-items-list {
        max-height: 220px !important;
    }

    /* Touch Controls & Form Inputs */
    .btn {
        min-height: 42px !important;
        padding: 0.55rem 0.95rem !important;
        font-size: 0.86rem !important;
        border-radius: var(--radius-sm) !important;
        font-weight: 700 !important;
    }

    .btn:active {
        transform: scale(0.96) !important;
    }

    .form-control {
        min-height: 44px !important;
        font-size: 16px !important; /* 16px prevents iOS Safari automatic viewport zooming */
        border-radius: var(--radius-sm) !important;
        padding: 0.65rem 0.85rem !important;
    }

    /* Mobile Bottom Navigation Bar (Bottom Tab Bar) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid var(--border-color) !important;
        box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06) !important;
        z-index: 900 !important;
        align-items: center !important;
        justify-content: space-around !important;
    }

    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: var(--text-muted) !important;
        text-decoration: none !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        gap: 2px !important;
        transition: color 0.15s ease, transform 0.15s var(--ease-spring) !important;
        position: relative !important;
        user-select: none !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        min-height: 48px !important;
    }

    .mobile-nav-item .nav-icon {
        font-size: 1.22rem !important;
        line-height: 1 !important;
        transition: transform 0.18s var(--ease-spring) !important;
    }

    .mobile-nav-item:active {
        transform: scale(0.9) !important;
    }

    .mobile-nav-item.active {
        color: var(--accent-color) !important;
    }

    .mobile-nav-item.active .nav-icon {
        transform: translateY(-2px) scale(1.12) !important;
    }

    .mobile-nav-item.active::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        width: 32px !important;
        height: 3px !important;
        border-radius: 0 0 4px 4px !important;
        background: var(--accent-color) !important;
        box-shadow: 0 1px 6px var(--accent-color) !important;
    }

    /* Mobile Sheet Modals */
    .modal-backdrop {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    .modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 1.4rem 1.15rem !important;
        max-height: 85vh !important;
        max-height: 85dvh !important;
        background: #ffffff !important;
        box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.2) !important;
        border: 1px solid var(--border-color) !important;
        border-bottom: none !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateY(100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .modal-backdrop.show .modal {
        transform: translateY(0) !important;
    }

    /* Tables */
    .table-container {
        border-radius: var(--radius-sm) !important;
        -webkit-overflow-scrolling: touch !important;
        background: #ffffff !important;
    }

    .data-table th, .data-table td {
        padding: 0.75rem 0.85rem !important;
        font-size: 0.84rem !important;
    }

    #agent-status {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .kpi-grid, .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.55rem !important;
    }

    .top-bar {
        padding: 0.5rem 0.75rem !important;
    }

    .station-timer {
        font-size: 1.65rem !important;
    }
}

/* Accessibility: respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
