:root {
    color-scheme: dark;
    /* Modern Dark Mode SaaS - KitGrid Command Center */
    --primary: #00D2FF;
    --primary-hover: #3A7BD5;
    --primary-light: rgba(0, 210, 255, 0.1);

    --secondary: #3A7BD5;
    --accent: #00D2FF;

    --success: #00E676;
    --warning: #FFB800;
    --danger: #FF4B4B;

    /* Dark Mode Base */
    --bg-main: #0B0E14;
    /* Deep Navy */
    --bg-card: #161B22;
    /* Dark Slate */
    --bg-sidebar: #0B0E14;

    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    --text-on-dark: #FFFFFF;
    --text-neon-mint: #00E676;

    --border: rgba(255, 255, 255, 0.05);
    --border-bright: rgba(255, 255, 255, 0.15);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.8);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.9);

    /* Neon Glow Shadows */
    --shadow-neon-cyan: 0 0 20px rgba(0, 210, 255, 0.4);
    --shadow-neon-danger: 0 4px 20px rgba(255, 75, 75, 0.2);
    --shadow-neon-warning: 0 4px 20px rgba(255, 184, 0, 0.15);
    --shadow-neon-success: 0 4px 20px rgba(0, 230, 118, 0.15);

    --glass: blur(12px);
    --liquid-gradient: linear-gradient(135deg, #0B0E14 0%, #161B22 100%);
}

/* Light Mode Overrides */
.light-mode {
    color-scheme: light;
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    
    --text-main: #0F172A; /* Slate 900 */
    --text-muted: #475569; /* Slate 600 - WCAG AA compliant */
    --text-light: #5F6368; /* Medium grey - WCAG AA compliant */
    --text-disabled: #94A3B8; /* Slate 400 - Disabled state */
    --text-on-dark: #FFFFFF;

    --success: #065F46; /* Deep Forest Green */
    --warning: #92400E; /* Dark Amber */
    --danger: #991B1B; /* Brick Red */

    --border: rgba(15, 23, 42, 0.08);
    --border-bright: rgba(15, 23, 42, 0.15);

    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 25px 60px -5px rgba(15, 23, 42, 0.15);

    --shadow-neon-cyan: 0 4px 20px rgba(0, 136, 204, 0.2);
    --shadow-neon-danger: 0 4px 20px rgba(255, 75, 75, 0.15);
    --shadow-neon-warning: 0 4px 20px rgba(255, 184, 0, 0.1);
    --shadow-neon-success: 0 4px 20px rgba(0, 230, 118, 0.1);

    --glass: blur(16px);
    --liquid-gradient: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);

    /* Refined Light Mode Constants */
    --primary: #0271A1; /* Refined blue for better light mode contrast */
    --primary-hover: #015A81;
    --primary-light: rgba(2, 113, 161, 0.08);
}

.light-mode .bg-mesh {
    background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
}

.light-mode .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.light-mode .liquid-glass {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.light-mode .btn-outline {
    background: #FFFFFF;
}

.light-mode .form-control {
    background: #FFFFFF;
    color: #0F172A;
    border-color: rgba(15, 23, 42, 0.12);
}

.light-mode .btn-primary {
    color: #FFFFFF; /* Ensure white text on primary buttons in light mode */
}

.light-mode .btn-outline {
    background: #FFFFFF;
    color: #475569;
    border-color: rgba(15, 23, 42, 0.12);
}

.light-mode .btn-outline:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.light-mode .nav-link:not(.active) {
    color: #64748B;
}

.light-mode .nav-link:hover {
    background: rgba(15, 23, 42, 0.04);
    color: #0F172A;
}

.light-mode .badge {
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
}

.light-mode .data-table th {
    background: #F1F5F9 !important;
    color: #475569 !important;
    font-weight: 700 !important;
}

.light-mode .data-table tr:hover td {
    background: rgba(0, 136, 204, 0.03);
}

/* Category Specific Vibrancy */
.cat-cameras i { color: #f59e0b; } /* Amber */
.cat-audio i { color: #6366f1; }   /* Indigo */
.cat-lighting i { color: #eab308; } /* Yellow */
.cat-projectors i { color: #10b981; } /* Emerald */
.cat-computers i { color: #3b82f6; }  /* Blue */

.light-mode .cat-cameras .icon-wrapper { background: rgba(245, 158, 11, 0.1); }
.light-mode .cat-audio .icon-wrapper { background: rgba(99, 102, 241, 0.1); }
.light-mode .cat-lighting .icon-wrapper { background: rgba(234, 179, 8, 0.1); }
.light-mode .cat-projectors .icon-wrapper { background: rgba(16, 185, 129, 0.1); }
.light-mode .cat-computers .icon-wrapper { background: rgba(59, 130, 246, 0.1); }

/* Table Striping */
.light-mode .data-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.01);
}

.light-mode .nav-item {
    color: var(--text-muted);
}

.light-mode .nav-item:hover {
    background: rgba(15, 23, 42, 0.03);
    color: #0F172A;
}

.light-mode .nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.light-mode .btn-danger {
    background: rgba(153, 27, 27, 0.08);
    border-color: rgba(153, 27, 27, 0.15);
    color: var(--danger);
}

.light-mode .btn-danger:hover {
    background: #FECACA;
    color: #991B1B;
}

.light-mode .btn-success {
    background: rgba(6, 95, 70, 0.08);
    border-color: rgba(6, 95, 70, 0.15);
    color: var(--success);
}

.light-mode .btn-success:hover {
    background: #BBF7D0;
    color: #166534;
}

.light-mode .btn-warning {
    background: rgba(146, 64, 14, 0.08);
    border-color: rgba(146, 64, 14, 0.15);
    color: var(--warning);
}

.light-mode .btn-warning:hover {
    background: #FEF08A;
    color: #854D0E;
}

/* Flatpickr Light Mode Refinement */
.light-mode .flatpickr-calendar {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    color: #0F172A !important;
}

.light-mode .flatpickr-day {
    color: #475569 !important;
}

.light-mode .flatpickr-day.selected {
    background: var(--primary) !important;
    color: white !important;
}

.light-mode .flatpickr-time {
    border-top-color: rgba(15, 23, 42, 0.06) !important;
}

.light-mode .flatpickr-time .numInputWrapper {
    background: rgba(15, 23, 42, 0.03) !important;
    border-color: rgba(15, 23, 42, 0.05) !important;
}

.light-mode .flatpickr-time input.numInput {
    color: #0F172A !important;
}

.light-mode .flatpickr-am-pm {
    background: var(--primary-light) !important;
    border-color: rgba(0, 136, 204, 0.15) !important;
    color: var(--primary) !important;
}

/* Modal Light Mode Refinements */
.light-mode .modal-content,
.light-mode .prompt-modal-content,
.light-mode .liquid-glass {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.light-mode .modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.light-mode .modal-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #F8FAFC;
}

.light-mode .modal-title {
    color: var(--text-main);
}

/* Kit Configuration UI refinements */
.light-mode #restriction-year-container {
    background: #FFFBEB; /* Soft amber background for warnings/restrictions */
    border: 1px solid #FEF3C7;
}

.light-mode .secondary-info-header,
.light-mode .accordion-header {
    background: #F1F5F9;
    color: var(--text-muted);
}

.light-mode .composition-container,
.light-mode #kit-items-list {
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Global Select/Option Refinements */
.light-mode select {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
    color-scheme: light !important;
}

.light-mode option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

.light-mode .form-control::placeholder {
    color: var(--text-disabled);
}

.light-mode .close-btn,
.light-mode .modal-close {
    color: #64748B;
}

.light-mode .close-btn:hover {
    color: #0F172A;
    background: rgba(15, 23, 42, 0.05);
}

/* Room Catalog Design System */
.space-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.space-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    height: 100%;
    position: relative;
    color: inherit;
}

.space-thumbnail {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

.space-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-light) inset;
}

.space-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.space-title {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.space-type {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0.8;
}

.space-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.space-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.space-equipment {
    background: var(--bg-main);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid var(--border);
    flex-grow: 1;
}

.space-header-mask {
    background: var(--bg-main);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    opacity: 0.95;
}

.light-mode .space-card {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.08);
}

.light-mode .space-thumbnail {
    background-color: #F1F5F9;
}

.space-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 10;
}

.status-available {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-booked {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.light-mode .status-available {
    background: #DCFCE7;
    color: #15803d;
    border-color: #86efac;
}

.light-mode .status-booked {
    background: #FEE2E2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.access-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.space-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.light-mode .space-equipment {
    background: #F8FAFC;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Sticky Search & Filter Headers */
.sticky-search-header {
    position: sticky;
    top: 4rem;
    z-index: 100;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.sticky-search-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--bg-main);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    z-index: -1;
    opacity: 0.9;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent);
}

.filter-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Icon Picker Styles */
.icon-picker-item:hover {
    background: var(--primary-light);
    border-color: var(--primary) !important;
    color: var(--primary);
}

.icon-picker-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary) !important;
}

.light-mode .icon-picker-item:hover {
    background: #F1F5F9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.light-mode .sidebar {
    background: #FFFFFF;
    border-right: 1px solid var(--border);
}

.student-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 3rem; /* Align with container padding */
}

.light-mode .student-nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border);
}

/* Theme Toggle Styles */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.theme-toggle-track {
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-bright);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.light-mode .theme-toggle-track {
    background: rgba(15, 23, 42, 0.05);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.light-mode .theme-toggle-thumb {
    transform: translateX(24px);
    background: #F59E0B; /* Sun color */
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.theme-toggle-thumb i {
    width: 12px;
    height: 12px;
    color: white;
    transition: all 0.3s;
}

.theme-toggle-thumb .sun-icon {
    display: none;
}

.light-mode .theme-toggle-thumb .sun-icon {
    display: block;
}

.light-mode .theme-toggle-thumb .moon-icon {
    display: none;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.011em;
    overflow-x: hidden;
}

/* Base Utility for Data Density */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Utilitarian Background (Replaces liquid mesh) */
.bg-mesh {
    background-color: var(--bg-main);
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    position: relative;
    overflow-x: hidden;
}

/* Glass Elements Refactored */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.liquid-glass {
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: 1px solid var(--border-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-layout {
    display: grid;
    grid-template-columns: clamp(240px, 20vw, 320px) 1fr;
    min-height: 100vh;
    overflow: visible;
    transition: grid-template-columns 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.admin-layout.sidebar-collapsed {
    grid-template-columns: 80px 1fr;
}

.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    padding: 2.5rem 0.75rem;
}

.main-content {
    padding: 3rem;
    position: relative;
    overflow: visible;
}

/* Components */
.card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--bg-card);
    border: 1px solid var(--border);
    position: relative;
    /* Removed overflow: hidden to allow hover glows/scale to blead */
}

.card:hover {
    background: var(--bg-card);
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.item-card.ineligible {
    opacity: 0.6;
    border-color: rgba(239, 68, 68, 0.2);
    filter: grayscale(0.5);
}

.item-card.ineligible:hover {
    transform: none;
    box-shadow: none;
    z-index: 10;
}

/* Kit Highlighting in Inventory */
.data-table tr.is-in-kit {
    background: rgba(0, 210, 255, 0.05) !important;
    border-left: 4px solid var(--primary) !important;
}

.inventory-card.is-in-kit {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1), var(--shadow-md);
}

.inventory-card.is-in-kit::after {
    content: 'KIT';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 10;
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    overflow: visible;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 0.75rem;
    letter-spacing: 0.02em;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-action:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Day Row for Locations */
.day-row {
    display: grid;
    grid-template-columns: 140px 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

/* Data Tables */
.data-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-main);
    padding: 1.25rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table td {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 0.95rem;
    text-align: left;
}

.data-table .text-center {
    text-align: center;
}

.data-table .text-right {
    text-align: right;
}

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

.data-table tr:hover td {
    background: var(--primary-light);
}

.loan-item-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.loan-item-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* Stat Cards */
.stat-card {
    border-bottom: 2px solid var(--border) !important;
    border-left: none !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: var(--bg-main);
    border: 1px solid var(--border);
}

.stat-card.primary {
    border-bottom-color: var(--primary) !important;
    box-shadow: var(--shadow-neon-cyan);
}

.stat-card.danger {
    border-bottom-color: var(--danger) !important;
    box-shadow: var(--shadow-neon-danger);
}

.stat-card.warning {
    border-bottom-color: var(--warning) !important;
    box-shadow: var(--shadow-neon-warning);
}

.stat-card.success {
    border-bottom-color: var(--success) !important;
    box-shadow: var(--shadow-neon-success);
}

.stat-value {
    font-size: 3rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    line-height: 1;
    margin-top: 0.5rem;
    letter-spacing: -0.05em;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    color: #FFFFFF;
    text-shadow: none;
    box-shadow: var(--shadow-neon-cyan);
}

.light-mode .btn-primary {
    background: var(--primary);
}

.btn-primary:disabled {
    filter: grayscale(1);
    opacity: 0.6;
    cursor: not-allowed;
    background: #64748B;
    box-shadow: none;
    transform: none !important;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
}

.dashboard-header .btn {
    text-decoration: none;
    letter-spacing: 0.04em;
}

.dashboard-cta {
    padding: 1rem 3.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.4);
    color: var(--bg-main) !important;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none !important;
}

.dashboard-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 55px rgba(0, 210, 255, 0.6);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(255, 75, 75, 0.2);
    border-color: rgba(255, 75, 75, 0.5);
    box-shadow: var(--shadow-neon-danger);
}

/* Badges & Status */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-weight: 600;
}

.badge-pending {
    background: rgba(255, 133, 18, 0.1);
    border: 1px solid rgba(255, 133, 18, 0.3);
    color: #ff8512;
    box-shadow: 0 0 10px rgba(255, 133, 18, 0.15);
    animation: pending-glow 2s infinite ease-in-out;
}

@keyframes pending-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 133, 18, 0.1); }
    50% { box-shadow: 0 0 15px rgba(255, 133, 18, 0.3); }
}

.badge-unassigned {
    background: rgba(255, 75, 75, 0.05);
    border: 1px solid rgba(255, 75, 75, 0.2);
    color: var(--danger);
}

.badge-primary {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    color: var(--primary);
}

.badge-success {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.3);
    color: var(--warning);
}

.badge-danger {
    background: rgba(255, 75, 75, 0.1);
    border: 1px solid rgba(255, 75, 75, 0.3);
    color: var(--danger);
}

/* Navigation */
.home-nav,
.student-nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(0, 210, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.1);
}

.nav-link i, .nav-link svg {
    opacity: 0.8;
}

.nav-link.active i, .nav-link.active svg {
    opacity: 1;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
    transition: all 0.3s;
    color-scheme: light dark;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* Date & Time Input Styling */
input[type="date"],
input[type="datetime-local"],
input[type="time"] {
    position: relative;
    color-scheme: dark !important;
}

/* ==============================
   Flatpickr — Dark Glassmorphism
   ============================== */
.flatpickr-calendar {
    background: rgba(11, 14, 20, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(0, 210, 255, 0.18) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 210, 255, 0.06) !important;
    border-radius: 1.25rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: var(--text-main) !important;
    padding: 0.25rem !important;
}

/* The whole time row */
.flatpickr-time {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 0 0 1.25rem 1.25rem !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0.6rem 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
}

/* Each number input column */
.flatpickr-time .numInputWrapper {
    flex: 1 !important;
    height: auto !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 0.6rem !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: border-color 0.2s, background 0.2s !important;
    position: relative !important;
}

.flatpickr-time .numInputWrapper:hover {
    background: rgba(0, 210, 255, 0.07) !important;
    border-color: rgba(0, 210, 255, 0.3) !important;
}

/* The actual number inputs */
.flatpickr-time input.numInput {
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0.6rem 0.25rem !important;
    cursor: default !important;
    box-shadow: none !important;
    outline: none !important;
}

.flatpickr-time input.numInput:focus {
    color: var(--primary) !important;
}

/* Separator colon */
.flatpickr-time .flatpickr-time-separator {
    color: rgba(0, 210, 255, 0.5) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    align-self: center !important;
    padding: 0 0.1rem !important;
    flex: 0 !important;
}

/* AM/PM selector */
.flatpickr-time .flatpickr-am-pm {
    background: rgba(0, 210, 255, 0.08) !important;
    border: 1px solid rgba(0, 210, 255, 0.2) !important;
    border-radius: 0.6rem !important;
    color: var(--primary) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    width: 46px !important;
    padding: 0.6rem 0.25rem !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
}

.flatpickr-time .flatpickr-am-pm:hover {
    background: rgba(0, 210, 255, 0.2) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.3) !important;
}

/* Up/Down arrows on spinners */
.flatpickr-time .numInputWrapper span {
    border-color: rgba(0, 210, 255, 0.35) !important;
    opacity: 0.7 !important;
    right: 0 !important;
    width: 20px !important;
}

.flatpickr-time .numInputWrapper span:hover {
    background: rgba(0, 210, 255, 0.15) !important;
    opacity: 1 !important;
}

.flatpickr-time .numInputWrapper .arrowUp:after {
    border-bottom-color: var(--primary) !important;
}

.flatpickr-time .numInputWrapper .arrowDown:after {
    border-top-color: var(--primary) !important;
}

/* Popup arrow at top */
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: rgba(0, 210, 255, 0.18) !important;
}

/* Ensure popup floats above the modal overlay */
.flatpickr-calendar.open {
    z-index: 99999 !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: var(--primary-light);
    padding: 0.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    filter: none;
    transition: all 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: var(--primary);
    filter: invert(1) brightness(2);
}

.time-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.time-input-wrapper:hover {
    background: var(--primary-light);
}

.time-input-wrapper i,
.time-input-wrapper svg {
    position: absolute;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    pointer-events: none;
    opacity: 0.8;
}

.time-input-wrapper .form-control {
    padding-left: 2.5rem;
    cursor: pointer;
    background: transparent !important;
    border-color: transparent !important;
}

.time-input-wrapper:focus-within {
    box-shadow: 0 0 0 2px rgba(0, 210, 255, 0.2);
    border-radius: var(--radius-md);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Sidebar Specifics */
.sidebar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--text-main);
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* .sidebar-brand::before was removed to avoid visual clutter with new brand logo */

.nav-item {
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: white;
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Inventory Status Highlighting (Traffic Light System) */
.data-table tr.row-status-available {
    border-left: 4px solid var(--success);
    box-shadow: inset 8px 0 10px -10px rgba(5, 213, 158, 0.5);
}

.data-table tr.row-status-out {
    border-left: 4px solid var(--danger);
    opacity: 0.8;
    /* Slightly dimmed if fully out */
}

.data-table tr.row-status-overdue {
    border-left: 4px solid #ff4444;
    background: rgba(239, 68, 68, 0.05);
    animation: pulse-red 2s infinite;
}

.data-table tr.row-status-pending {
    border-left: 4px solid var(--warning);
    box-shadow: inset 8px 0 10px -10px rgba(251, 191, 36, 0.5);
}

@keyframes pulse-red {
    0% {
        border-left-color: #ff4444;
    }

    50% {
        border-left-color: #991b1b;
    }

    100% {
        border-left-color: #ff4444;
    }
}

/* Sidebar Responsive Components */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
    /* overflow: hidden removed to allow toggle to float out */
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: normal;
    transition: opacity 0.25s ease;
    max-width: 100%;
    line-height: 1.2;
    display: block;
}

/* View Toggles & List View Styles */
.view-toggles {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-main);
    padding: 0.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.view-btn {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

/* List View Layout */
.item-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: none;
}

/* List Row — BEM Component */
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.list-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.list-row.ineligible {
    opacity: 0.55;
}

/* Left section: thumbnail + text */
.list-row__main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.list-row__thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-main);
    flex-shrink: 0;
}

.list-row__text {
    min-width: 0;
    flex: 1;
}

.list-row__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.list-row__title h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-row__badge {
    font-size: 0.65rem !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--border) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    flex-shrink: 0;
}

.list-row__desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right section: availability + buttons */
.list-row__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.list-row__availability {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 110px;
    text-align: right;
}

.list-row__buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.list-row__buttons .btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .list-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .list-row__actions {
        width: 100%;
        justify-content: space-between;
    }

    .list-row__availability {
        min-width: auto;
        text-align: left;
    }

    .list-row__buttons {
        flex: 1;
        justify-content: flex-end;
    }
}

.sidebar-collapsed .sidebar-brand-large {
    display: none;
}

.sidebar-collapsed .sidebar-brand-small {
    display: block;
}

.sidebar:not(.sidebar-collapsed) .sidebar-brand-small {
    display: none;
}

.sidebar:not(.sidebar-collapsed) .sidebar-brand-large {
    display: block;
}

.sidebar .brand-logo-small {
    display: none;
}

.sidebar.collapsed .brand-logo-large {
    display: none;
}

.sidebar.collapsed .brand-logo-small {
    /* Display handled by JS to prevent conflict with initial fallback */
    max-width: 32px;
    height: 32px;
}

.sidebar.collapsed .sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar.collapsed .sidebar-brand {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    align-items: center;
}

.sidebar.collapsed .brand-text {
    opacity: 1;
    max-width: 100%;
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .brand-name-full {
    display: none !important;
}

.sidebar.collapsed .brand-name-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--bg-main);
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar:not(.collapsed) .brand-name-initial {
    display: none;
}

/* Toggle button - floating circular style */
.sidebar-toggle {
    position: absolute;
    right: -14px; /* Half out */
    top: 2.5rem; /* Align with header items */
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-toggle:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-neon-cyan);
}

/* Arrow rotates when collapsed */
.sidebar-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1;
    margin-right: 1px; /* Optical centering for chevron */
}

.sidebar.collapsed .sidebar-toggle .toggle-icon {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-toggle {
    top: 2rem; /* Slightly tighter in collapsed mode */
}


/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Nav items */
.nav-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.nav-item .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.25s;
}

.nav-item:hover .icon {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

.nav-label {
    transition: opacity 0.25s ease, max-width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 180px;
    overflow: hidden;
}

/* Collapsed state: nav items become icon-only pills */
.sidebar.collapsed .nav-item {
    padding: 0.75rem;
    justify-content: center;
    border-radius: var(--radius-md);
    gap: 0;
}

.sidebar.collapsed .nav-label {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

/* Tooltip on hover when collapsed */
.sidebar.collapsed .nav-item::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-bright);
    color: var(--text-main);
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(-50%) translateX(-4px);
    backdrop-filter: blur(12px);
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* User Identity Section */
.user-profile {
    padding: 0.85rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 56px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-sizing: border-box;
}

.sidebar.collapsed .user-profile {
    padding: 0.6rem;
    justify-content: center;
    margin-bottom: 2.25rem;
    background: transparent;
    border-color: transparent;
    gap: 0;
    width: 60px;
    margin-left: auto;
    margin-right: auto;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.sidebar.collapsed .user-avatar {
    margin: 0 auto;
}

.user-meta {
    overflow: hidden;
    transition: opacity 0.25s ease, max-width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 200px;
}

.sidebar.collapsed .user-meta {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

.user-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.logout-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0.75rem 1rem !important;
    gap: 0.875rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.logout-btn:hover {
    background: rgba(248, 113, 113, 0.08) !important;
    border-color: rgba(248, 113, 113, 0.2) !important;
    color: var(--danger) !important;
}

.sidebar.collapsed .logout-btn {
    justify-content: center !important;
    padding: 0.75rem !important;
    gap: 0 !important;
}

.sidebar.collapsed .logout-btn .nav-label {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

.data-table tr.row-status-available:hover {
    background: rgba(5, 213, 158, 0.08) !important;
}

.data-table tr.row-status-out:hover {
    background: rgba(239, 68, 68, 0.05) !important;
}

.data-table tr.row-status-overdue:hover {
    background: rgba(245, 158, 11, 0.05) !important;
}


/* Custom Calendar Popup styles moved from JS */
.custom-calendar-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 280px;
    z-index: 50;
    padding: 1.25rem;
    box-sizing: border-box;
    border-radius: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    height: auto;
    flex-direction: column;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .admin-layout {
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    .admin-layout.sidebar-collapsed {
        grid-template-columns: 1fr !important;
    }

    .sidebar {
        width: 100% !important;
        height: 70px !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        padding: 0.5rem !important;
        flex-direction: row !important;
        border-right: none !important;
        border-top: 1px solid var(--border) !important;
        border-radius: 1.5rem 1.5rem 0 0 !important;
        background: rgba(2, 6, 23, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 2000 !important;
    }

    .sidebar-header,
    .sidebar-footer {
        display: none;
    }

    .sidebar.collapsed {
        padding: 0.75rem;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }

    .nav-item {
        margin-bottom: 0;
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.7rem;
    }

    .nav-label {
        opacity: 1 !important;
        transform: none !important;
        position: static !important;
    }

    .sidebar.collapsed .nav-label {
        display: block;
    }

    .main-content {
        padding: 1.5rem 1.5rem 6rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .data-table-wrapper {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid Layouts */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.item-card:hover .item-card__thumb {
    transform: scale(1.05);
}

.modal-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* General Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center; /* Centered for viewport-relative positioning like flashloan */
    justify-content: center;
    z-index: 10000; /* High z-index to stay above everything */
    overflow-y: auto;
    padding: 2rem 1rem;
}

/* --- Optimized Booking Modal --- */
.booking-modal-content {
    max-width: 1250px;
    width: 95%;
    height: 92vh;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.booking-modal-content .modal-header {
    padding: 1.5rem 2.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.booking-modal-content .modal-body {
    padding: 1.5rem 2.5rem;
    flex: 1;
    overflow-y: auto;
}

.booking-modal-content .booking-progress-container {
    margin-bottom: 2rem !important;
}

.booking-modal-content #calendar-grid {
    gap: 1.5rem !important;
}

/* --- Standard Premium Modals --- */
.premium-modal {
    background: rgba(13, 17, 23, 0.8) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    overflow: hidden;
    color: var(--text-main);
}

.premium-modal .modal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.5rem 2rem;
}

.premium-modal .modal-body {
    padding: 2rem;
}

.premium-modal .modal-footer {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-content:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.1);
}

.flash-loan-modal-content {
    max-width: min(90vw, 780px);
    padding: clamp(1.5rem, 1.8vw, 2.5rem);
}

@media (min-width: 1500px) {
    .flash-loan-modal-content {
        max-width: 720px;
    }
}

.text-neon {
    color: #00ffaa !important;
    /* Brighter neon mint */
    text-shadow: 0 0 12px rgba(0, 255, 170, 0.6);
    font-weight: 800;
}

/* ── Shopping Cart / Booking Tray ── */
.cart-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px var(--primary-shadow);
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-fab:hover {
    transform: scale(1.1);
}

.cart-fab i, .cart-fab svg {
    width: 28px;
    height: 28px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-card);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
}

.cart-drawer {
    width: 800px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-location-warning {
    background: rgba(255, 133, 18, 0.1);
    border: 1px solid rgba(255, 133, 18, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin: 0 2rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--warning);
    font-size: 0.85rem;
    line-height: 1.5;
}

.cart-location-warning i {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: border-color 0.2s;
}

.cart-item-row.unavailable {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid var(--border);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-status-indicator {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.status-available { background: var(--success-light); color: var(--success); }
.status-unavailable { background: var(--danger-light); color: var(--danger); }

.cart-remove-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.cart-remove-item:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-main);
}

.cart-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
        padding-bottom: 80px; /* Space for mobile tab bar */
    }
    .cart-items-list {
        padding: 1rem;
    }
    .cart-footer {
        padding: 1.5rem 1rem;
    }
    .cart-calendar-grid {
        grid-template-columns: 1fr;
    }
    .cart-fab {
        bottom: calc(90px + env(safe-area-inset-bottom));
        right: 1.5rem;
    }
}

.confirm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-neon-danger);
    animation: confirmIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes confirmIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.confirm-message {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-confirm {
    background: #ef4444;
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-confirm:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.inventory-card {
    cursor: pointer;
    overflow: hidden;
}

.inventory-card .card-img {
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.inventory-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.inventory-card:hover .card-img img {
    transform: scale(1.1);
}

.inventory-card .card-img .status-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

/* Detail Card Modal */
.detail-card {
    min-height: 500px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--primary);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Category Hot Buttons */
.hot-buttons-row {
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.hot-buttons-row::-webkit-scrollbar {
    display: none;
}

.hot-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hot-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-bright);
    color: var(--text-main);
}

.hot-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-neon-cyan);
}

/* Dropdown Menu Overrides */
.dropdown-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 250px;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    margin-top: 5px;
}

.dropdown-item {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s ease;
    white-space: normal;
}

.dropdown-item:hover {
    background: var(--primary-light);
    padding-left: 1.5rem;
}

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

.dropdown-item .sub-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-family: monospace;
}

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

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item .sub-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- UI Toggle Switch --- */
.ui-toggle-switch {
    position: relative;
    display: inline-block;
    width: 2.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.ui-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ui-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ui-toggle-slider:before {
    position: absolute;
    content: "";
    height: 0.95rem;
    width: 0.95rem;
    left: 0.15rem;
    bottom: 0.12rem;
    background-color: var(--text-muted);
    transition: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
}

.ui-toggle-switch input:checked+.ui-toggle-slider {
    background-color: rgba(20, 184, 166, 0.2);
    border-color: var(--primary);
}

.ui-toggle-switch input:checked+.ui-toggle-slider:before {
    transform: translateX(1rem);
    background-color: var(--primary);
}

label:hover .ui-toggle-slider {
    border-color: rgba(255, 255, 255, 0.3);
}

label:hover .ui-toggle-switch input:checked+.ui-toggle-slider {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.3);
}

/* Inventory Tabs */
.inventory-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-bright);
}

/* ── Equipment Booking Time Selector (Pill-Row Design) ── */
.time-selection-pill-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pill-block-label {
    margin: 0 0 0.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-bright);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pill-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    gap: 1rem;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.pill-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.pill-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.pill-time-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    appearance: none;
    outline: none;
    padding-right: 1.5rem;
}

.pill-chevron {
    position: absolute;
    right: 1.25rem;
    font-size: 0.7rem;
    opacity: 0.5;
    pointer-events: none;
}

.pill-status-bubble {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    width: fit-content;
    margin-top: 0.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-status-bubble.is-standard {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pill-status-bubble.is-custom {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

@media (max-width: 768px) {
    .step-2-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}
eat(2, 1fr);
    }
}