:root {
    --primary-color: #0d6efd;
    /* Medical Blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --bg-color: #f8f9fa;
    /* Very light gray, almost white */
    --card-bg: #ffffff;
    --text-color: #343a40;
    --border-color: #dee2e6;
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow-md: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #2c3e50;
    font-weight: 600;
}

/* Navbar overrides */
.navbar {
    background: linear-gradient(to right, #ffffff, #f0f8ff) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid #e3e6f0;
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link {
    color: #5a6268 !important;
    font-weight: 500;
}

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

/* Card Styling */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: #f1f3f9;
    color: #495057;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

/* Week Grid */
.week-grid {
    /* Bootstrap grid handles layout, we handle inner spacing */
}

.day-column {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow 0.2s;
}

.day-column:hover {
    box-shadow: var(--shadow-md);
    border-color: #dbe2e8;
}

.day-header {
    background-color: #f8f9fa;
    /* Light gray header */
    border-bottom: 1px solid #e9ecef;
    padding: 12px;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.day-header .fw-bold {
    color: var(--primary-color);
    letter-spacing: 1px;
}

.agenda-item {
    background-color: #ffffff;
    border: 1px solid #edf2f7;
    border-left: 4px solid #20c997;
    /* Teal for health feel */
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.agenda-item:hover {
    background-color: #fcfcfc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Flatpickr Light Theme Override (if needed) */
.flatpickr-calendar {
    box-shadow: var(--shadow-md) !important;
    border: none !important;
}

/* Utility */
.text-muted {
    color: #6c757d !important;
}