:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: var(--card-bg);
    padding: 2rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

header img {
    height: 120px;
    width: auto;
    border-radius: 4px;
}

header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
}

header h2 {
    margin: 0.5rem 0 0;
    font-weight: 400;
    color: #666;
    font-size: 1.1rem;
}

/* Navigation / Links (Optional, simplified from original menu) */
.nav-links {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Sections */
.section-title {
    text-align: center;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.center-wrapper {
    text-align: center;
}

/* Info Cards Grid */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.card-content p {
    margin: 0.5rem 0;
}

.highlight {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Notice / Alert */
.alert {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.alert h3 {
    margin-top: 0;
    color: var(--accent-color);
    text-align: center;
}

.alert-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .alert-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

td {
    vertical-align: top;
    text-align: center;
}

tr:hover {
    background-color: #f1f1f1;
}

/* Doctor specific badges in table */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.badge.gerd {
    background-color: #e74c3c; /* Reddish */
}

.badge.frasnelli {
    background-color: #3498db; /* Blueish */
}

.time-slot {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.time-slot div:last-child {
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #ddd;
}

/* Utility */
.email-obfuscated {
    word-break: break-all;
    font-family: monospace;
    background: #eee;
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}
