/* ===== Smart Hospital Queue – Custom Styles ===== */

:root {
    --sidebar-width: 240px;
    --topbar-height: 56px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar .nav-link {
    padding: 10px 15px;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    font-weight: 600;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Stat cards */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Crowd cards */
.crowd-card {
    transition: all 0.2s;
}

.crowd-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Slot cards */
.slot-card {
    transition: all 0.2s;
}

.slot-card:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Pulse badge for LIVE indicator */
.pulse-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Queue table highlights */
.table-warning {
    --bs-table-bg: #fff3cd !important;
}

.table-info {
    --bs-table-bg: #cff4fc !important;
}

/* Progress bars */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    .sidebar .nav-link span,
    .sidebar-header h5,
    .sidebar-header small,
    .sidebar .mt-auto {
        display: none;
    }
    .main-content {
        margin-left: 60px;
    }
}

/* Card hover effects */
.card {
    border-radius: 12px;
}

/* Table styles */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Badge styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
