/* style.css */
/* Premium styling extensions for Bootstrap 5 - Classic Modern Medical UI Theme */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f1b2d;
    --bg-card: rgba(16, 30, 52, 0.75);
    --bg-card-hover: rgba(22, 40, 68, 0.88);
    --border-color: rgba(200, 164, 78, 0.12);
    --accent-blue: #2563eb;
    --accent-teal: #1a7f7a;
    --accent-emerald: #0d9668;
    --accent-rose: #dc2649;
    --accent-gold: #c8a44e;
    --accent-gold-light: #e8d5a0;
    --accent-navy: #1e3a5f;
    --text-primary: #eef2f7;
    --text-secondary: #8a9bba;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 20px rgba(200, 164, 78, 0.25), 0 0 60px rgba(37, 99, 235, 0.1);
}

/* Classic accent color overrides */
.text-info {
    color: var(--accent-gold) !important;
}

.bg-info {
    background-color: var(--accent-gold) !important;
    color: #0f1b2d !important; /* High contrast dark text on gold bg */
}

/* High-contrast readable badge classes */
.badge.bg-info,
.badge-gold-solid {
    background-color: #c8a44e !important;
    color: #0f1b2d !important;
    font-weight: 700;
}

.badge-gold-subtle {
    background: rgba(200, 164, 78, 0.18) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(200, 164, 78, 0.45) !important;
    font-weight: 700;
}

.badge-warning-subtle,
.badge-absent {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fef08a !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    font-weight: 700;
}

.badge.bg-warning,
.badge-warning-solid {
    background-color: #f59e0b !important;
    color: #0f1b2d !important;
    font-weight: 700;
}

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

.border-info {
    border-color: rgba(200, 164, 78, 0.3) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at 15% 10%, rgba(200, 164, 78, 0.06) 0px, transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(37, 99, 235, 0.06) 0px, transparent 55%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 127, 122, 0.04) 0px, transparent 60%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Glassmorphism Cards - Modern Tech/Medical Aesthetic */
.glass-card {
    position: relative;
    background: linear-gradient(145deg, rgba(18, 32, 56, 0.82) 0%, rgba(11, 21, 38, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 164, 78, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

/* Subtle Glowing Top Border Accent on Modern Cards */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(200, 164, 78, 0.6) 35%, 
        rgba(37, 99, 235, 0.6) 70%, 
        transparent 100%
    );
    opacity: 0.75;
    transition: opacity 0.35s ease, height 0.35s ease;
}

.glass-card:hover {
    border-color: rgba(200, 164, 78, 0.38);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.55), 
                0 0 28px rgba(200, 164, 78, 0.15),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
    opacity: 1;
    height: 3px;
}

/* Header & Navbar */
.navbar-custom {
    background: rgba(12, 22, 38, 0.88) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Inputs and Forms */
.form-control, .form-select {
    background-color: rgba(12, 22, 40, 0.7) !important;
    border: 1px solid rgba(200, 164, 78, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(12, 22, 40, 0.9) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.2) !important;
}

.form-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px 0 rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #047857 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(13, 150, 104, 0.3);
    transition: all 0.2s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px 0 rgba(13, 150, 104, 0.45);
    background: linear-gradient(135deg, #0d9668 0%, #065f46 100%);
}

/* Custom Table style */
.table-custom {
    color: var(--text-primary);
}

.table-custom th {
    background-color: rgba(12, 22, 40, 0.85) !important;
    border-bottom: 2px solid rgba(200, 164, 78, 0.15);
    color: var(--text-secondary);
    font-weight: 600;
}

.table-custom td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(200, 164, 78, 0.08);
    vertical-align: middle;
}

/* Badges */
.badge-assigned {
    background-color: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.25);
    padding: 0.4em 0.8em;
    font-weight: 600;
    border-radius: 20px;
}

.badge-completed {
    background-color: rgba(13, 150, 104, 0.12);
    color: #34d399;
    border: 1px solid rgba(13, 150, 104, 0.25);
    padding: 0.4em 0.8em;
    font-weight: 600;
    border-radius: 20px;
}

/* Camera Overlay */
.camera-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0a1423;
    border: 2px solid rgba(200, 164, 78, 0.15);
}

#cameraStream {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.camera-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Map placeholder / leafet map sizing */
.map-container {
    height: 250px;
    border-radius: 12px;
    border: 1px solid rgba(200, 164, 78, 0.12);
    overflow: hidden;
}

.map-container-large {
    height: 400px;
    border-radius: 16px;
    border: 1px solid rgba(200, 164, 78, 0.12);
}

/* Doctor card specific elements */
.doctor-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.doctor-profile-img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(200, 164, 78, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-card:hover .doctor-profile-img {
    border-color: var(--accent-gold);
    transform: scale(1.06) rotate(-1deg);
    box-shadow: 0 8px 20px rgba(200, 164, 78, 0.3);
}

.doctor-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1.5px solid rgba(200, 164, 78, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-icon-box {
    border-color: var(--accent-gold);
    transform: scale(1.06);
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
}

.doctor-name-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.doctor-card:hover .doctor-name-heading {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.specialty-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #c8a44e 0%, #f3e5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Modern Status Badges */
.badge-slots-left {
    background: rgba(13, 150, 104, 0.15) !important;
    color: #34d399 !important;
    border: 1px solid rgba(13, 150, 104, 0.35) !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.02em;
    box-shadow: 0 0 14px rgba(13, 150, 104, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-full-house {
    background: rgba(220, 38, 73, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(220, 38, 73, 0.35) !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.02em;
    box-shadow: 0 0 14px rgba(220, 38, 73, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-icon {
    width: 15px;
    height: 15px;
    vertical-align: text-bottom;
}

.extra-small {
    font-size: 0.75rem;
}

/* Slot List Container & Modern Sub-Cards */
.slot-section-divider {
    border-top: 1px solid rgba(200, 164, 78, 0.12);
    padding-top: 1rem;
    margin-top: 1rem;
}

.slot-card-item {
    background: rgba(12, 22, 40, 0.65);
    border: 1px solid rgba(200, 164, 78, 0.12);
    border-radius: 14px;
    padding: 12px 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.slot-card-hover {
    cursor: pointer;
}

.slot-card-hover:hover {
    border-color: rgba(200, 164, 78, 0.45) !important;
    background: linear-gradient(135deg, rgba(22, 38, 66, 0.95) 0%, rgba(16, 30, 52, 0.95) 100%) !important;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 14px rgba(200, 164, 78, 0.15);
}

.btn-book-slot {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-book-slot:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* Specialty Search Filter Box Modernization */
.search-filter-wrapper {
    position: relative;
}

.search-filter-input {
    background-color: rgba(12, 22, 40, 0.75) !important;
    border: 1px solid rgba(200, 164, 78, 0.2) !important;
    color: var(--text-primary) !important;
    border-radius: 14px;
    padding: 0.65rem 1.25rem 0.65rem 2.6rem !important;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.search-filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    pointer-events: none;
    width: 18px;
    height: 18px;
    z-index: 5;
}

.search-filter-input:focus {
    background-color: rgba(12, 22, 40, 0.95) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 20px rgba(200, 164, 78, 0.25) !important;
}

/* Page transitions / Fade in */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 78, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 164, 78, 0.3);
}

/* Stats Cards */
.stat-card {
    border-left: 4px solid var(--accent-blue);
}

.stat-card.emerald {
    border-left-color: var(--accent-emerald);
}

.stat-card.rose {
    border-left-color: var(--accent-rose);
}

/* ===== SIDEBAR MENU SYSTEM ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10, 18, 32, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(200, 164, 78, 0.08);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(200, 164, 78, 0.08);
}

.sidebar-brand h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -0.01em;
}

.sidebar-brand span {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #4a5e7a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 14px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #8a9bba;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(200, 164, 78, 0.06);
    color: #e2e8f0;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.12) 0%, rgba(37, 99, 235, 0.08) 100%);
    color: var(--accent-gold);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-blue));
}

.sidebar-link i, .sidebar-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-link .link-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(200, 164, 78, 0.08);
}

/* ===== MAIN CONTENT WRAPPER ===== */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TOP BAR ===== */
.topbar {
    background: rgba(10, 18, 32, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 164, 78, 0.08);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: 1px solid rgba(200, 164, 78, 0.15);
    border-radius: 10px;
    color: #8a9bba;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    background: rgba(200, 164, 78, 0.08);
    color: #e2e8f0;
    border-color: rgba(200, 164, 78, 0.3);
}

/* ===== LIVE CLOCK ===== */
.live-clock {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a9bba;
}

/* ===== OVERLAY (MOBILE) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
}

/* Pulse animation for online status */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    display: inline-block;
    position: relative;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--accent-emerald);
    animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay.show {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .hamburger-btn {
        display: flex;
    }
}

