.cpb-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cpb-crashpads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cpb-crashpad-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cpb-crashpad-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cpb-crashpad-item.selected {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.cpb-crashpad-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cpb-booking-form {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cpb-form-group {
    margin-bottom: 15px;
}

.cpb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.cpb-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cpb-submit-booking {
    background-color: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cpb-submit-booking:hover {
    background-color: #005a87;
}

#cpb-booking-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#cpb-booking-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#cpb-booking-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Availability Calendar Styles */
.cpb-availability-calendar {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cpb-availability-calendar .fc-daygrid-day {
    cursor: pointer;
}

.cpb-availability-calendar .fc-daygrid-day.cpb-booked {
    background-color: #ffe6e6 !important;
    cursor: not-allowed;
}

.cpb-availability-calendar .fc-daygrid-day.cpb-available {
    background-color: #e6f7e6 !important;
}

.cpb-availability-calendar .fc-daygrid-day.cpb-past {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.cpb-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5px;
}

.cpb-day-number {
    font-weight: bold;
    font-size: 14px;
}

.cpb-day-status {
    font-size: 10px;
    margin-top: 2px;
    text-transform: uppercase;
}

.cpb-availability-calendar .cpb-booked .cpb-day-status {
    color: #dc3545;
}

.cpb-availability-calendar .cpb-available .cpb-day-status {
    color: #28a745;
}

.cpb-availability-calendar .fc-event {
    cursor: default;
}

.cpb-availability-calendar .fc-daygrid-day.fc-day-today {
    background-color: #fff3cd !important;
}

/* Legend */
.cpb-availability-legend {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 12px;
}

.cpb-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cpb-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.cpb-legend-color.available {
    background-color: #e6f7e6;
}

.cpb-legend-color.booked {
    background-color: #ffe6e6;
}

.cpb-legend-color.past {
    background-color: #f5f5f5;
}

/* Mini Calendar Styles */
.cpb-mini-calendar-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cpb-mini-calendar {
    font-size: 12px;
}

.cpb-mini-calendar .fc-header-toolbar {
    margin-bottom: 0.5em;
    font-size: 13px;
}

.cpb-mini-calendar .fc-toolbar-title {
    font-size: 16px !important;
    font-weight: bold;
}

.cpb-mini-calendar .fc-daygrid-day {
    font-size: 12px;
    padding: 4px;
    min-height: 35px;
    height: 35px;
}

.cpb-mini-calendar .fc-daygrid-day-number {
    font-size: 14px !important;
    font-weight: 600;
    padding: 4px !important;
    color: #333 !important;
    line-height: 1.2;
}

.cpb-mini-calendar .fc-col-header-cell {
    font-size: 11px;
    padding: 6px 4px;
    font-weight: 600;
}

.cpb-mini-calendar .fc-button {
    padding: 4px 8px;
    font-size: 12px;
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.cpb-mini-calendar .fc-button:hover {
    background-color: #005a87;
    border-color: #005a87;
}

.cpb-mini-calendar .fc-prev-button,
.cpb-mini-calendar .fc-next-button {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 30px;
}

.cpb-mini-calendar .fc-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cpb-mini-calendar .fc-daygrid-day-frame {
    min-height: 30px;
}

.cpb-mini-calendar-loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 12px;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-booked {
    background-color: #ffe6e6 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-booked .fc-daygrid-day-number {
    color: #dc3545 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-available {
    background-color: #e6f7e6 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-available .fc-daygrid-day-number {
    color: #28a745 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-past {
    background-color: #f5f5f5 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-daygrid-day.cpb-past .fc-daygrid-day-number {
    color: #999 !important;
    opacity: 0.7;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-day-today {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
}

.cpb-crashpad-item .cpb-mini-calendar .fc-day-today .fc-daygrid-day-number {
    color: #856404 !important;
    font-weight: bold;
}

