/* public/css/doctor.css */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0284c7; /* Clinical Cyan/Blue */
    --primary-dark: #1e40af;  /* Professional Trust Royal Blue */
    --secondary-color: #f8fafc; /* EMR Off-white/slate background */
    --text-main: #0f172a;      /* Slate 900 for absolute contrast */
    --text-muted: #475569;    /* Slate 600 */
    --accent: #10b981;        /* Emerald for active/completed states */
    --danger: #e11d48;        /* Crimson for cancelled/danger states */
    --border: #cbd5e1;        /* Slate 300 for clean medical borders */
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-main);
    line-height: 1.5;
}

/* Header */
header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

/* Grid System */
.doctor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.chamber-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.chamber-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.chamber-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-book:hover {
    background-color: var(--primary-dark);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 90px);
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    height: fit-content;
    box-shadow: var(--shadow);
}

.avatar {
    width: 70px;
    height: 70px;
    background-color: #e0f2fe;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
}

.sidebar h3 {
    color: var(--text-main);
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    margin-top: 1.5rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu li a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu li a:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.sidebar-menu li a.active {
    background: #f0f9ff;
    color: var(--primary-dark);
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
}

/* Main Content area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dash-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dash-card h2, .dash-card h3 {
    color: var(--text-main);
    font-weight: 700;
}

/* Patient Queue Statistics Strip (EMR Overview Dashboard) */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.stat-icon-box.waiting { background: #eff6ff; color: #3b82f6; }
.stat-icon-box.checked { background: #ecfdf5; color: #10b981; }
.stat-icon-box.cancelled { background: #fff1f2; color: #f43f5e; }
.stat-icon-box.total { background: #f0fdf4; color: #0891b2; }

.stat-info h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Form layouts */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fff;
    color: var(--text-main);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* EMR High-Density Table Styling */
.table-responsive {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}

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

table tr:hover td {
    background-color: #f8fafc;
}

/* Glowing Serial Badges */
.serial-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f0fdf4;
    border: 1px solid #bcf0da;
    color: var(--accent);
    font-weight: 700;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.05rem;
}

/* Patient Avatar Circle */
.patient-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* Badges */
.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
}

.badge.confirmed {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge.pending {
    background-color: #fef3c7;
    color: #b45309;
}

.badge.cancelled {
    background-color: #ffe4e6;
    color: #b91c1c;
}

.badge.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.hidden {
    display: none !important;
}

/* Pulsing Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .7; transform: scale(0.96); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive queries */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sidebar {
        padding: 1rem;
    }
    .sidebar > div {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left !important;
        margin-bottom: 1rem !important;
    }
    .sidebar .avatar {
        margin: 0 !important;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .sidebar h3 {
        margin-top: 0 !important;
        font-size: 1.05rem;
    }
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 6px;
        margin-top: 1rem;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }
    .sidebar-menu li {
        margin: 0;
    }
    .sidebar-menu li a {
        margin-bottom: 0;
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
    .sidebar-menu li a.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
        border-radius: 20px 20px 0 0;
    }
    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* public/doctors.html specific doctor-card layout styling */
.doctor-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.25);
}

.doctor-card .card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.doctor-card .avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--primary-dark);
    border: 2px solid #bae6fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.doctor-card .doc-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.doctor-card .doc-info p {
    font-size: 0.88rem;
    margin: 0;
}

.doctor-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.doctor-card hr {
    border: 0;
    border-top: 1px dashed var(--border);
    margin: 0.5rem 0;
}

.doctor-card .chamber-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doctor-card .chamber-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.doctor-card .chamber-box:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
}

/* Responsive styles for doctors page */
@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
        flex-direction: row;
        justify-content: space-between;
    }
    .logo {
        font-size: 1.2rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    .container {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    .search-container {
        padding: 1.25rem;
        margin: 10px auto 20px;
    }
    .search-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .stats-dashboard {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .stat-card {
        padding: 1rem !important;
    }
    .doctor-grid {
        grid-template-columns: 1fr !important;
    }
}


