/* booking_widget.css */
.booking-widget {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.booking-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007BFF;
}

.calendar-container {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-month {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.calendar-nav button:hover {
    background-color: #0056b3;
}

.calendar-nav button:active {
    background-color: #004494;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendar-day-header {
    font-weight: bold;
    color: #333;
    padding: 5px;
}

.calendar-day {
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    background: #f5f5f5;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.available {
    background: #28a745;
    color: white;
}

.calendar-day.available:hover {
    background: #218838;
}

.calendar-day.selected {
    background: #007BFF;
    color: white;
}

.calendar-day.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.time-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.time-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.time-header h4 {
    margin: 0;
    font-size: 18px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.time-slot {
    padding: 12px 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    position: relative;
    font-size: 15px;
}

.time-slot.available {
    background: #28a745;
    color: white;
}

.time-slot.available:hover {
    background: #218838;
}

.time-slot.selected {
    background: #007BFF;
    color: white;
}

.time-slot.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #007BFF;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .booking-widget {
        padding: 15px;
    }

    .calendar-day {
        padding: 8px;
        font-size: 14px;
    }

    .time-container {
        width: 95%;
    }
    
    .time-slot {
        padding: 10px 8px;
        font-size: 14px;
    }
}