body {
  background: #fafafa;
  color: #333333;
  margin-top: 5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

.bg-steel {
  background-color: #5f788a;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

.availability-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

.availability-grid th, .availability-grid td {
    font-size: 12px;
    padding: 0 1px 0 1px;
    min-width: 36px;
    max-width: 48px;
    height: 16px;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
}

.availability-grid td:first-child {
    text-align: center;
    vertical-align: middle;
    height: 16px;
    padding: 0 1px 0 1px;
    font-weight: normal;
    background: #fafafa;
    font-size: 12px;
    line-height: 1;
}

.availability-grid .time-slot {
    background-color: #f0f0f0;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background 0.1s;
    height: 16px;
    line-height: 1;
    padding: 0;
}

.availability-grid .time-slot.selected {
    background-color: #28a745;
    color: #fff;
}

.availability-grid tr.half-hour-row td {
    background: #eaffea;
}

.availability-grid .time-slot.box-preview {
    border: 2px solid #007bff;
    background: #d0e7ff !important;
}

.availability-grid .time-slot span {
    font-size: 10px;
    line-height: 1;
    display: block;
    margin: 0;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .availability-grid th, .availability-grid td {
        font-size: 10px;
        padding: 0 1px 0 1px;
        min-width: 28px;
        max-width: 36px;
        height: 14px;
    }
    .availability-grid td:first-child {
        height: 14px;
        padding: 0 1px 0 1px;
        font-size: 10px;
        font-weight: normal;
        line-height: 1;
    }
}

.grid-date {
    font-size: 10px;
    color: #444;
    font-weight: 400;
    line-height: 1;
}
.grid-day {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    display: block;
    margin-top: 0px;
} 

/* ------------------------------------------------------------
 * Modernized Availability Grid
 * ------------------------------------------------------------ */
.availability-grid {
  border-collapse: separate;
  border-spacing: 2px;
}

.availability-grid-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.availability-grid th,
.availability-grid td {
  border: none !important; /* override bootstrap .table-bordered */
}

.availability-grid th {
  background: #f5f7fa;
  color: #495057;
  font-weight: 600;
  border-radius: 6px;
}

.availability-grid .time-slot {
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #e9ecef;
  transition: background 0.2s ease, transform 0.1s ease;
}

.availability-grid .time-slot:hover:not(.selected):not(.disabled) {
  background: #d6dde3;
  cursor: pointer;
  transform: scale(1.03);
}

.availability-grid .time-slot.selected {
  background: #28a745;
  color: #fff;
  transform: scale(1.05);
}

.availability-grid .time-slot.disabled {
  background: #f8f9fa;
  opacity: 0.6;
  cursor: not-allowed;
}

.availability-grid tr.half-hour-row td {
  background: #fdfdfd;
} 

/* ------------------------------------------------------------
 * Button enhancements – consistent rounded look
 * ------------------------------------------------------------ */
.btn {
  border-radius: 6px !important;
}

.btn-sm {
  border-radius: 5px !important;
} 

/* Utility for horizontal spacing between flex children (for Bootstrap 4 compatibility) */
.flex-gap > *:not(:last-child) {
  margin-right: 16px;
} 

/* Utility for horizontal and vertical spacing between flex children (for Bootstrap 4 compatibility) */
.gap-2 > *:not(:last-child) {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
} 

/* Fix for vertically aligning .btn-sm in flex rows (dashboard event buttons) */
.dashboard-event-btn-row .btn-sm,
.dashboard-event-btn-row form {
  display: flex;
  align-items: center;
  height: 38px;
  margin-bottom: 0 !important;
} 

/* Finalized block style (matches dark theme) */
.availability-grid .time-slot.finalized-block {
    background-color: #ffb347 !important;
    color: #222 !important;
    border: 2px solid #ff9800 !important;
    font-weight: 700;
    box-shadow: 0 0 0 2px #ff9800 inset !important;
}

/* Finalize selection style for light theme */
.availability-grid .time-slot.final-slot {
    background-color: #9333ea !important; /* bright purple for finalize selection */
    color: #fff !important;
    border: 2px solid #9333ea !important;
    font-weight: 700;
    opacity: 0.95;
}

/* Ensure final-slot overrides heatmap colors in light theme */
.availability-grid .time-slot.final-slot.heatmap-1,
.availability-grid .time-slot.final-slot.heatmap-2,
.availability-grid .time-slot.final-slot.heatmap-3,
.availability-grid .time-slot.final-slot.heatmap-4,
.availability-grid .time-slot.final-slot.heatmap-5,
.availability-grid .time-slot.final-slot.heatmap-6 {
    background-color: #9333ea !important; /* bright purple for finalize selection */
    color: #fff !important;
    border: 2px solid #9333ea !important;
    font-weight: 700;
    opacity: 0.95;
} 

/* Heat-map colour scale */
.availability-grid .heatmap-1 { background:#7dd3fc !important; color:#fff !important; }
.availability-grid .heatmap-2 { background:#34d399 !important; color:#fff !important; }
.availability-grid .heatmap-3 { background:#fde047 !important; color:#222 !important; }
.availability-grid .heatmap-4 { background:#fb923c !important; color:#222 !important; }
.availability-grid .heatmap-5 { background:#f87171 !important; color:#fff !important; }
.availability-grid .heatmap-6 { background:#a78bfa !important; color:#fff !important; } 

/* Heat-map colours for dark theme */
.dark-theme .heatmap-1 { background:#7dd3fc !important; color:#fff !important; }
.dark-theme .heatmap-2 { background:#34d399 !important; color:#fff !important; }
.dark-theme .heatmap-3 { background:#fde047 !important; color:#222 !important; }
.dark-theme .heatmap-4 { background:#fb923c !important; color:#222 !important; }
.dark-theme .heatmap-5 { background:#f87171 !important; color:#fff !important; }
.dark-theme .heatmap-6 { background:#a78bfa !important; color:#fff !important; }

/* CAPTCHA styling */
.captcha-container {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    background: #f9f9f9;
    margin-bottom: 15px;
}

.captcha-display {
    text-align: center;
    margin-bottom: 10px;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #333;
    background: #fff;
    padding: 10px 15px;
    border: 2px solid #007bff;
    border-radius: 5px;
    display: inline-block;
    min-width: 120px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.dark-theme .captcha-container {
    background: #2a2a2a;
    border-color: #444;
}

.dark-theme .captcha-text {
    background: #333;
    color: #fff;
    border-color: #007bff;
} 