/* SiS Fila - Premium Material Design & Glassmorphism Theme */

:root {
    --bg-main: #f4f6f9;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    --text-color: #212529;
    --text-muted: #6c757d;
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --secondary-color: #198754;
    --accent-orange: #fd7e14;
    --accent-purple: #6f42c1;
    --alert-danger: #dc3545;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #1e293b;
    --sidebar-text: #e2e8f0;
    --sidebar-active: #0284c7;
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.08);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

.card-stat {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.card-stat:hover {
    transform: translateY(-3px);
}

/* Priority Badges */
.badge-priority {
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-emergency { background-color: #dc3545; color: #fff; }
.badge-urgency { background-color: #fd7e14; color: #fff; }
.badge-priority-legal { background-color: #0dcaf0; color: #000; }
.badge-normal { background-color: #6c757d; color: #fff; }

/* Sidebar Layout */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    margin: 0.2rem 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--sidebar-active);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* TV Call Screen Styling */
.tv-screen {
    background: #020617;
    color: #ffffff;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.tv-call-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 3px solid #0284c7;
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(2, 132, 199, 0.4);
    padding: 2.5rem;
    text-align: center;
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 30px rgba(2, 132, 199, 0.3); }
    100% { box-shadow: 0 0 70px rgba(2, 132, 199, 0.7); }
}

.tv-ticket-number {
    font-size: 6.5rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(56, 189, 248, 0.5);
    line-height: 1;
}

.tv-patient-name {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 1rem;
}

.tv-room-box {
    background: #16a34a;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 2.8rem;
    font-weight: 800;
    display: inline-block;
    margin-top: 1.5rem;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.tv-history-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 1.2rem;
    border-left: 6px solid #38bdf8;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
}
