/* Stili generali */
body {
    background-image: linear-gradient(315deg, #fefae097 10%, #fffef5 250%);
}

/* Container principale */
.booking-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);

}

/* Container per le notifiche in alto a destra */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

/* Stili per le notifiche/toast */
.notification {
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out forwards;
    background-color: white;
}

.notification.alert-success {
    border-left: 5px solid #28a745;
}

.notification.alert-danger {
    border-left: 5px solid #dc3545;
}

.notification.alert-warning {
    border-left: 5px solid #ffc107;
}

.notification .close-btn {
    float: right;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
}

.notification .close-btn:hover {
    opacity: 1;
}

/* Animazione per le notifiche */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
 
.btnprenota {
    background: linear-gradient(135deg, #4a9b5a, #2d7a3e, #1e5a28);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 122, 62, 0.3);
}

.btnprenota::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btnprenota:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 62, 0.4);
    background: linear-gradient(135deg, #5cb26e, #34885f, #246b35);
}

.btnprenota:hover::before {
    left: 100%;
}

.btnprenota:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.btnmenu {
    background: linear-gradient(135deg, #d4a73a, #b8941f, #8b6914);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 105, 20, 0.3);
}

.btnmenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btnmenu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
    background: linear-gradient(135deg, #e8b944, #d4a73a, #a67c17);
}

.btnmenu:hover::before {
    left: 100%;
}

.btnmenu:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Stili per il modal */
#reservationModal {
    --primary-color: rgba(23, 56, 11, 0.626);
    --primary-dark: rgba(23, 56, 11, 0.626);
    --border-color: #e9ecef;
}

#reservationModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#reservationModal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-bottom: none;
    padding: 1.5rem;
}

/* Form controls - FIX per le label che coprono il testo */
#reservationModal .form-floating>.form-control,
#reservationModal .form-floating>.form-select {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    font-weight: bolder;
}

#reservationModal .form-floating>.form-control:focus,
#reservationModal .form-floating>.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.1);
}

/* Correggi le label che coprono il testo */
#reservationModal .form-floating>label {
    padding: 1rem 0.75rem;
    color: #6c757d;
    opacity: 0.9;
    transition: all 0.2s ease;
}

/* Assicurati che le label si spostino correttamente quando il campo è attivo o ha contenuto */
#reservationModal .form-floating>.form-control:focus~label,
#reservationModal .form-floating>.form-control:not(:placeholder-shown)~label,
#reservationModal .form-floating>.form-select~label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-1.2rem) translateX(-0.1rem);
    background-color: white;
    padding: 0 0.5rem;
    height: auto;
    color: var(--primary-color);
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Assicurati che i campi textarea abbiano spazio sufficiente */
#reservationModal .form-floating textarea.form-control {
    height: 100px;
    padding-top: 1.625rem;
}

/* Stili per le icone nelle label */
#reservationModal .form-floating>label i {
    margin-right: 0.25rem;
}

/* Bottoni */
#reservationModal .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#reservationModal .btn-primary {
    background: linear-gradient(135deg, #4a9b5a, #2d7a3e, #1e5a28);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(45, 122, 62, 0.2);
}

#reservationModal .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#reservationModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 62, 0.4);
    background: linear-gradient(135deg, #5cb26e, #34885f, #246b35);
}

#reservationModal .btn-primary:hover::before {
    left: 100%;
}

#reservationModal .btn-secondary {
    background: linear-gradient(135deg, #9da5ae, #6c757d, #495057);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
    color: white;
}

#reservationModal .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#reservationModal .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    background: linear-gradient(135deg, #b0b8c1, #7a828a, #545b62);
}

#reservationModal .btn-secondary:hover::before {
    left: 100%;
}



/* Icone */
#reservationModal .fas,
#reservationModal .far {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Validazione */
#reservationModal .form-control.is-invalid {
    border-color: #dc3545;
    background-position: right calc(0.375em + 0.1875rem) center;
}

/* Animazioni */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

/* Alert e messaggi */
#capacityWarning,
#bookingMessage {
    margin-top: 1rem;
    border-radius: 8px;
}

/* Stili per i pulsanti di selezione pasto (pranzo/cena) - più delicati e compatti */
.meal-btn-group {
    display: flex;
    gap: 10px;
    width: 100%;
 
}

.meal-btn-group .btn-meal {
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa, #f1f3f4);
    color: #6c757d;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0.7rem 0.6rem;
    height: calc(2.8rem + 2px);
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.meal-btn-group .btn-meal i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.meal-btn-group .btn-meal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s;
}

.meal-btn-group .btn-meal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(76, 140, 87, 0.4);
    background: linear-gradient(135deg, rgba(76, 140, 87, 0.05), rgba(76, 140, 87, 0.08));
}

.meal-btn-group .btn-meal:hover::before {
    left: 100%;
}

.meal-btn-group .btn-meal.active {
    background: linear-gradient(135deg, rgba(76, 140, 87, 0.75), rgba(76, 140, 87, 0.85));
    color: white;
    border-color: rgba(76, 140, 87, 0.6);
    box-shadow: 0 4px 12px rgba(76, 140, 87, 0.15);
    transform: translateY(-1px);
}

.meal-btn-group .btn-meal.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Stili per la selezione degli orari */
.time-selection-container {
    margin-bottom: 1.5rem;
}

.time-selection-label {
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.time-selection-label i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.time-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.time-btn-group .btn-time {
    background: linear-gradient(135deg, #f8f9fa, #f1f3f4);
    color: #6c757d;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 60px;
    font-size: 0.8rem;
}

.time-btn-group .btn-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.4s;
}

.time-btn-group .btn-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(76, 140, 87, 0.4);
    background: linear-gradient(135deg, rgba(76, 140, 87, 0.05), rgba(76, 140, 87, 0.08));
}

.time-btn-group .btn-time:hover::before {
    left: 100%;
}

.time-btn-group .btn-time.active {
    background: linear-gradient(135deg, rgba(76, 140, 87, 0.75), rgba(76, 140, 87, 0.85));
    color: white;
    border-color: rgba(76, 140, 87, 0.6);
    box-shadow: 0 3px 8px rgba(76, 140, 87, 0.15);
}

.time-btn-group .btn-time.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
    color: #9aa0a6;
    border-color: #dadce0;
    transform: none;
    box-shadow: none;
}

.seats-badge {
    display: block;
    font-size: 11px;
    margin-top: 2px;
    color: #666;
    font-weight: normal;
    opacity: 0.8;
}

/* Stili personalizzati per Flatpickr - Design moderno e pulito */
.flatpickr-calendar {
    font-weight: 400;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: white;
}

.flatpickr-months {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 15px 0;
}

.flatpickr-month {
    color: #495057;
    font-weight: 600;
}

.flatpickr-current-month {
    padding: 5px 0;
    font-weight: 600;
}

.flatpickr-monthDropdown-months,
.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
    color: #495057;
    font-weight: 500;
}

.flatpickr-weekday {
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    font-size: 0.85rem;
}

/* Giorni normali */
.flatpickr-day {
    color: #495057;
    background: transparent;
    border-radius: 6px;
    padding: 0;
    margin: 2px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flatpickr-day:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Giorno selezionato */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #28a745;
    color: white;
    font-weight: 500;
    border-color: #28a745;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.flatpickr-day.selected:hover {
    background: #218838;
    border-color: #1e7e34;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

/* Giorni del mese precedente/successivo */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #adb5bd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Giorni chiusi - stile più elegante */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay,
.flatpickr-day.flatpickr-day-closed {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    text-decoration: none !important;
    opacity: 0.7 !important;
    border-color: #f5c6cb !important;
    position: relative;
    box-shadow: none !important;
}

/* Aggiunge una X discreta sui giorni chiusi */
.flatpickr-day.flatpickr-disabled::after,
.flatpickr-day.notAllowed::after,
.flatpickr-day.flatpickr-day-closed::after {
    content: "✕";
    position: absolute;
    font-size: 0.7rem;
    color: #dc3545;
    opacity: 0.6;
}

/* Oggi */
.flatpickr-day.today {
    border-color: #28a745;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

.flatpickr-day.today:not(.selected) {
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

/* Stili per il banner dei cookie */
:root {
    --cookie-primary: #28a745;
    --cookie-secondary: rgba(23, 56, 11, 0.626);
    --cookie-accent: #ffc107;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 360px;
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
}

.cookie-content {
    margin-bottom: 15px;
}

.cookie-content h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--cookie-secondary);
}

.cookie-content p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cookie-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.accept-all {
    background: linear-gradient(135deg, #4a9b5a, #2d7a3e, #1e5a28);
    color: white;
    flex-grow: 2;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.accept-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.4s;
}

.accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.4);
    background: linear-gradient(135deg, #5cb26e, #34885f, #246b35);
}

.accept-all:hover::before {
    left: 100%;
}

.accept-necessary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    border: 2px solid #e3e6ea;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accept-necessary:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #2d7a3e;
}

.cookie-settings {
    background-color: transparent;
    color: #2d7a3e;
    text-decoration: underline;
    padding: 6px 8px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cookie-settings:hover {
    color: #1e5a28;
    background: rgba(45, 122, 62, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}