* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: #333;
}

.nav-button {
    background-color: #1C2655;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.nav-button:hover:not(:disabled) {
    background-color: #0f1736;
}

.nav-button:disabled {
    cursor: not-allowed;
}

.about-calendar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.about-calendar h3 {
    color: #1C2655;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.about-calendar p {
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-calendar p:last-child {
    margin-bottom: 0;
}

.about-calendar strong {
    color: #1C2655;
    font-weight: 600;
}

.info-message {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    font-size: 20px;
}

.booking-link-container {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.booking-link-container h2 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.booking-link-container p {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.booking-link-button {
    display: inline-block;
    background-color: #1C2655;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.booking-link-button:hover {
    background-color: #0f1736;
}

.calendar-container {
    overflow-x: auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 100px repeat(10, 1fr);
    gap: 0;
    background-color: #ddd;
    border: 2px solid #333;
    min-width: 1200px;
}

.calendar-cell {
    background-color: white;
    padding: 10px;
    text-align: center;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 1px solid #ddd;
}

.time-label {
    font-weight: bold;
    background-color: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 10;
    border-right: 3px solid #333;
    white-space: nowrap;
}

.day-header {
    font-weight: bold;
    background-color: #1C2655;
    position: sticky;
    top: 0;
    color: white;
    padding: 15px 10px;
    font-size: 16px;
    border-left: 3px solid #333;
    border-bottom: 2px solid #333;
}

.day-header:first-of-type {
    border-left: none;
}

.staff-header {
    font-weight: bold;
    color: black;
    position: sticky;
    top:52px;
    font-size: 14px;
    border-bottom: 2px solid #333;
}

.connie-header {
    background-color: #FFE4F0;
    border-left: 3px solid #333;
}

.carea-header {
    background-color: #E6D5F5;
}

.slot {
    cursor: default;
    transition: all 0.2s;
    position: relative;
}

.connie-slot {
    background-color: #FFE4F0;
    border-left: 3px solid #333;
    border-right: 1px solid #ddd;
}

.carea-slot {
    background-color: #E6D5F5;
    border-right: 1px solid #ddd;
}

.slot.current {
    background-color: #d4edda !important;
    border: 2px solid #28a745 !important;
}

.slot.past:not(.booked) {
    background-color: #e9ecef !important;
}

.slot.past.connie-slot:not(.booked) {
    background-color: #e9ecef !important;
}

.slot.past.carea-slot:not(.booked) {
    background-color: #e9ecef !important;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.slot.open .status-badge {
    background-color: white;
    border: 2px solid #1C2655;
    color: #1C2655;
}

.slot.booked .status-badge {
    background-color: #28a745;
    color: white;
    border: 2px solid #28a745;
}

.slot.pending .status-badge {
    background-color: #ffc107;
    color: #333;
    border: 2px solid #ffc107;
}

.slot.past {
    opacity: 0.2;
    cursor: not-allowed;
}

.slot.past .status-badge {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.slot.past.booked .status-badge {
    background-color: #28a745;
    opacity: 0.6;
}

/* Booking tier colors */
.slot.booking-too-soon .status-badge {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.slot.booking-tier1 .status-badge {
    background-color: #BF962F;
    border: 2px solid #BF962F;
    color: white;
}

.slot.booking-tier2 .status-badge {
    background-color: #1C2655;
    border: 2px solid #1C2655;
    color: white;
}

.slot.booking-tier3 .status-badge {
    background-color: white;
    border: 2px solid #1C2655;
    color: #1C2655;
}

/* Italic styles */
.info-message {
    font-style: italic;
}

.slot.booked .status-badge,
.slot.pending .status-badge {
    font-style: italic;
}

.status-badge.current-open {
    font-style: italic;
}

.slot.current .status-badge {
    font-style: italic;
}

.deposit-text {
    font-size: 11px;
    font-style: italic;
    color: black;
    margin-top: 4px;
    text-align: center;
}

/* Tooltip styling */
.booking-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    min-width: 300px;
    text-align: left;
    line-height: 1.6;
}

.booking-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #333;
}

.slot.open:hover .booking-tooltip {
    display: block;
}

.booking-tooltip strong {
    color: #ffc107;
}
