/*
 * KBT Daily Booking Tracker - Custom Styles
 * Design System: Dark gradient theme with glassmorphism
 * Mobile-first responsive design
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;

    
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --accent-success: #34d399;
    --accent-warning: #fbbf24;
    --accent-danger: #f87171;
    --accent-info: #22d3ee;
    
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --gradient-danger: linear-gradient(135deg, #f87171 0%, #e879f9 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 30%, #1e293b 70%, #0f172a 100%);
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-radius: 16px;
    --border-radius: 12px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--gradient-hero);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(129, 140, 248, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(52, 211, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-secondary);
}

.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==================== GLASS NAVIGATION ==================== */
.glass-nav {
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
}

.glass-nav .navbar-brand {
    font-size: 1.2rem;
    letter-spacing: -0.3px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.glass-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-glass-hover);
}

.text-accent {
    color: var(--accent-primary) !important;
}

.btn-accent-glow {
    background: var(--gradient-accent) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: var(--transition);
}

.btn-accent-glow:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
    color: white !important;
}

/* ==================== GLASS CARDS ==================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.glass-card .card-body {
    padding: 1.5rem;
}

/* ==================== STAT CARDS ==================== */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

.stat-card.accent-blue::before { background: var(--gradient-accent); }
.stat-card.accent-green::before { background: var(--gradient-success); }
.stat-card.accent-yellow::before { background: var(--gradient-warning); }
.stat-card.accent-red::before { background: var(--gradient-danger); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.stat-card .stat-icon.bg-blue { background: var(--gradient-accent); }
.stat-card .stat-icon.bg-green { background: var(--gradient-success); }
.stat-card .stat-icon.bg-yellow { background: var(--gradient-warning); }
.stat-card .stat-icon.bg-red { background: var(--gradient-danger); }

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 2rem 0 1rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hero-section .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* ==================== FORMS ==================== */
.form-floating > .form-control,
.form-floating > .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    transition: var(--transition);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.form-floating > label {
    color: var(--text-muted);
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--accent-primary);
}

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

/* Select dropdown dark styling */
.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ==================== BUTTONS ==================== */
.btn-primary-gradient {
    background: var(--gradient-accent);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
    color: white;
}

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

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

.btn-success-gradient {
    background: var(--gradient-success);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-success-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.35);
    color: white;
}

.btn-danger-gradient {
    background: var(--gradient-danger);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-danger-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.35);
    color: white;
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ==================== TABLES ==================== */
.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass thead th {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.table-glass tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-glass tbody tr {
    transition: var(--transition);
}

.table-glass tbody tr:hover {
    background: var(--bg-glass-hover);
}

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

/* Responsive table wrapper */
.table-responsive-glass {
    overflow-x: auto;
    border-radius: var(--card-radius);
    -webkit-overflow-scrolling: touch;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

.login-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.login-icon.village { background: var(--gradient-success); }
.login-icon.admin { background: var(--gradient-accent); }

/* ==================== CHART CONTAINERS ==================== */
.chart-container {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    margin-bottom: 1.5rem;
}

.chart-container h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.chart-container canvas {
    max-height: 350px;
}

/* ==================== BADGE STYLES ==================== */
.badge-glass {
    background: var(--bg-glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge-success { background: rgba(52, 211, 153, 0.15); color: var(--accent-success); border-color: rgba(52, 211, 153, 0.3); }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--accent-warning); border-color: rgba(251, 191, 36, 0.3); }
.badge-danger { background: rgba(248, 113, 113, 0.15); color: var(--accent-danger); border-color: rgba(248, 113, 113, 0.3); }
.badge-info { background: rgba(56, 189, 248, 0.15); color: var(--accent-primary); border-color: rgba(56, 189, 248, 0.3); }

/* ==================== PROGRESS BAR ==================== */
.progress-glass {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-glass .progress-bar {
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-glass .progress-bar.bg-success { background: var(--gradient-success); }
.progress-glass .progress-bar.bg-warning { background: var(--gradient-warning); }
.progress-glass .progress-bar.bg-danger { background: var(--gradient-danger); }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-custom {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    min-width: 300px;
}

.toast-custom.toast-success { border-left: 4px solid var(--accent-success); }
.toast-custom.toast-error { border-left: 4px solid var(--accent-danger); }
.toast-custom.toast-warning { border-left: 4px solid var(--accent-warning); }
.toast-custom.toast-info { border-left: 4px solid var(--accent-primary); }

/* ==================== LOADING SPINNER ==================== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.spinner-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner-glow {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== ADMIN SIDEBAR ==================== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: var(--transition);
}

.admin-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .sidebar-link:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.admin-sidebar .sidebar-link.active {
    background: rgba(56, 189, 248, 0.08);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.admin-sidebar .sidebar-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-sidebar .sidebar-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 1.5rem;
}

.admin-sidebar .sidebar-label {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    min-width: 0;
}

/* ==================== MODAL STYLES ==================== */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    padding: 1.5rem;
}

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

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* ==================== VILLAGE CARDS (Dashboard) ==================== */
.village-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.village-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}

.village-card .village-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.village-card .village-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.village-card .village-stat .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    margin-bottom: 1.5rem;
}

.filter-bar .form-group {
    flex: 1;
    min-width: 150px;
}

.filter-bar label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
}

/* ==================== SUCCESS ANIMATION ==================== */
.success-check {
    display: none;
    text-align: center;
    padding: 2rem;
}

.success-check.show {
    display: block;
    animation: scaleIn 0.5s ease;
}

.success-check .check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    animation: pulse 2s ease infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(52, 211, 153, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Stagger animation for lists */
.animate-item { animation: slideUp 0.5s ease backwards; }
.animate-item:nth-child(1) { animation-delay: 0.05s; }
.animate-item:nth-child(2) { animation-delay: 0.1s; }
.animate-item:nth-child(3) { animation-delay: 0.15s; }
.animate-item:nth-child(4) { animation-delay: 0.2s; }
.animate-item:nth-child(5) { animation-delay: 0.25s; }
.animate-item:nth-child(6) { animation-delay: 0.3s; }
.animate-item:nth-child(7) { animation-delay: 0.35s; }
.animate-item:nth-child(8) { animation-delay: 0.4s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 70px;
        z-index: 1040;
        height: calc(100vh - 70px);
        transition: left 0.3s ease;
    }

    .admin-sidebar.show {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 1035;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .admin-content {
        width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header .btn {
        width: 100%;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-group {
        width: 100%;
    }

    .chart-container canvas {
        max-height: 250px;
    }

    .glass-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .table-glass thead th,
    .table-glass tbody td {
        padding: 0.65rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* ==================== INSTALL PAGE ==================== */
.install-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-hero);
}

.install-card {
    max-width: 600px;
    width: 100%;
}

.install-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.install-step:last-child {
    border-bottom: none;
}

.install-step .step-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.install-step .step-icon.pending { background: var(--bg-tertiary); color: var(--text-muted); }
.install-step .step-icon.success { background: rgba(52, 211, 153, 0.2); color: var(--accent-success); }
.install-step .step-icon.error { background: rgba(248, 113, 113, 0.2); color: var(--accent-danger); }

/* ==================== UTILITY CLASSES ==================== */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-blue { box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2); }
.glow-green { box-shadow: 0 4px 20px rgba(52, 211, 153, 0.2); }
.glow-yellow { box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2); }

.fs-sm { font-size: 0.85rem; }
.fs-xs { font-size: 0.75rem; }
.fw-800 { font-weight: 800; }

.app-footer {
    background: rgba(15, 23, 42, 0.5);
    border-top: 1px solid var(--glass-border);
}

/* Print styles */
@media print {
    .glass-nav, .admin-sidebar, .app-footer, .btn, .filter-bar { display: none !important; }
    body { background: white; color: black; }
    .glass-card, .stat-card { background: white; border: 1px solid #ddd; box-shadow: none; }
}
