:root {
    --primary-color: #006699;
    /* Original Brand Blue */
    --primary-hover: #004d73;
    --secondary-color: #6c757d;
    --background-color: #f4f6f9;
}

body {
    background-color: var(--background-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

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

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* FullCalendar Overrides (if present) */
.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* DataTables & Table Styling */
.table thead th {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
    font-weight: 500;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 102, 153, 0.05);
    /* Very light blue tint */
}

/* DataTables Controls */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px 8px;
    margin-left: 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-hover) !important;
    color: white !important;
    border: 1px solid var(--primary-hover) !important;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #dee2e6;
}

/* Grid Utilities */
.row.small-gutters {
    margin-right: -7.5px;
    margin-left: -7.5px;
}

.row.small-gutters>[class^="col-"],
.row.small-gutters>[class*=" col-"] {
    padding-right: 7.5px;
    padding-left: 7.5px;
}

.row.micro-gutters {
    margin-right: -2px;
    margin-left: -2px;
}

.row.micro-gutters>[class^="col-"],
.row.micro-gutters>[class*=" col-"] {
    padding-right: 2px;
    padding-left: 2px;
}

/* Event Summary Styling */
.fc-total-count {
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
    font-weight: bold;
    font-size: 0.9em;
    padding: 4px 5px;
    /* Increased padding */
    margin-bottom: 2px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: block !important;
    /* Force block */
    height: auto !important;
    /* Force auto height */
}

/* Ensure inner text is visible */
.fc-total-count .fc-event-main-frame {
    color: #333 !important;
    font-size: 13px;
    line-height: 1.4;
}

/* Hide the default dot if present */
.fc-total-count .fc-event-dot {
    display: none;
}

/* Bulk Selection Highlight */
.bulk-selected-event {
    box-shadow: 0 0 0 2px #ffc107 inset !important;
    opacity: 0.9 !important;
    transform: scale(0.98);
    transition: all 0.1s ease-in-out;
}

/* ===== Location Decoupling: Coverage Mode ===== */
.navbar.coverage-mode {
    background-color: #e2a03f !important;
    transition: background-color 0.3s ease;
}

.navbar.coverage-mode .navbar-brand,
.navbar.coverage-mode .nav-link,
.navbar.coverage-mode .navbar-text {
    color: #1a1a1a !important;
}

.location-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

/* Location override highlight for student views */
.location-override {
    color: #e2a03f;
    font-weight: bold;
}

.location-override-badge {
    background-color: #fff3cd;
    color: #856404;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 4px;
}

/* Pre-Flight Modal Theme Custom Colors */
.list-group-item-orange {
    background-color: #ffe8cc !important;
    color: #a65100 !important;
    border-color: #ffd8a8 !important;
}
.border-orange {
    border-color: #fd7e14 !important;
}
.bg-orange {
    background-color: #fd7e14 !important;
}