:root {
    --card-border: #ddd;
    --muted: #666;
    --book-bg: #e9f2ff;
    --main-bg: #e6f4ea;        /* light green */
    --community-bg: #fff4e5;   /* light orange/cream */
    --main-booking-bg: #d9f0df;
    --community-booking-bg: #ffe7c7;
    --green: #0b5d1e;
}

body {
    font-family: system-ui, Arial, sans-serif;
    margin: 16px;
    line-height: 1.6;
}

/* Header and Filter Styles */
header {
    margin-bottom: 20px;
}

.calendarHeaderRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#pitchControls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#pitchControls select, 
#pitchControls input {
    font-size: 14px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.btn-refresh {
    background: #2563eb;
    color: #fff;
    border: 1px solid #1d4ed8;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-refresh:hover {
    background: #1d4ed8;
}

/* Booking Calendar Styles */
#bookingsCalendar table {
    width: 100%;
    border-collapse: collapse;
}

#bookingsCalendar th, 
#bookingsCalendar td {
    border: 1px solid #e6e6e6;
    padding: 8px;
    vertical-align: top;
}

#bookingsCalendar th {
    background: #f7f7f7;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Booking Card Styles */
.card {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    background: #fff;
}

.bookCard {
    background: var(--book-bg) !important;
    border-color: rgba(0,0,0,0.12);
}

/* Form Styles */
#bookPitchSection form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    min-width: 160px;
}

input, select, textarea, button {
    font-size: 14px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #fff;
}

textarea {
    width: 100%;
    min-height: 72px;
}

.btnPrimary {
    background: #0b5d1e;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btnPrimary:hover {
    filter: brightness(0.95);
}

/* Duration Preset Buttons */
.durPresets {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.durPresetBtn {
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cfd7e3;
    background: #f6f8fb;
    color: #0b2e6b;
    font-size: 12px;
    cursor: pointer;
}

.durPresetBtn:hover {
    background: #edf2ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendarHeaderRow {
        flex-direction: column;
        align-items: stretch;
    }

    #pitchControls {
        flex-direction: column;
    }

    .row {
        flex-direction: column;
    }

    label {
        min-width: 100%;
    }
}
