/* css/frontend.css */
/* Bootstrap doplňky a přepisy pro plugin rezervací */

.flower-reservation-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.flower-form {
    background: #fff8;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Calendar styling */
#flower-calendar {
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.calendar-nav {
    background: #198754;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.calendar-nav:hover {
    background: #157347;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px 5px;
    color: #666;
    font-size: 13px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
}

.calendar-day:not(.empty):not(.past):not([data-disabled]):hover {
    background: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calendar-day.empty {
    border: none;
    cursor: default;
    background: transparent;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

.calendar-day.available {
    background: #d1e7dd;
    border-color: #198754;
}

.calendar-day.full {
    background: #f8d7da;
    border-color: #dc3545;
    cursor: not-allowed;
}

.calendar-day.closed {
    background: #e2e3e5;
    border-color: #6c757d;
    cursor: not-allowed;
    color: #666;
}

.calendar-day.selected {
    background: #198754 !important;
    color: white;
    font-weight: bold;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

/* Messages using Bootstrap alerts */
.flower-message {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .flower-reservation-form {
        padding: 10px;
    }
    
    .flower-form {
        padding: 20px;
    }
    
    .calendar-day {
        font-size: 12px;
    }
}

/* Low capacity state (2–3) */
.calendar-day.low {
  background-color: #ffc10722; /* subtle warning tint */
  border-color: #ffc107;
}
.calendar-day.low:hover {
  background-color: #ffc10733;
}
