.fully-booked {
    background-color: #f44336 !important; /* Rosso */
    color: white !important;
}

.fully-booked:hover {
    background-color: #d32f2f !important; /* Rosso scuro */
}

.fully-booked a {
    color: white !important;
    pointer-events: none; /* Impedisce clic sul link */
    text-decoration: none; /* Rimuove eventuali sottolineature */
}


/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Header Section */
header {
    margin-bottom: 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

table th,
table td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

table thead th {
    background-color: #007bff;
    color: white;
    border-bottom: 2px solid #dee2e6;
}

table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Calendar Section */
#calendar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: #fff;
    padding: 20px;
}

.ui-datepicker-buttonpane {
    text-align: center; /* Centrare i pulsanti */
    margin-top: 10px;
}

.ui-datepicker-buttonpane button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin: 0 5px; /* Spaziatura tra i pulsanti */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ui-datepicker-buttonpane button:hover {
    background-color: #0056b3;
}

.ui-datepicker-header {
    position: relative;
    text-align: center;
    padding-top: 40px; /* Spazio per i pulsanti sopra */
}

.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute;
    top: 10%;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white !important; ;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ui-datepicker-prev {
    left: 10px;
}

.ui-datepicker-next {
    right: 10px;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background-color: #0056b3;
}

.ui-datepicker {
    width: 100%;
}

.ui-datepicker td a {
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ui-datepicker td a:hover {
    background-color: #007bff;
    color: #fff;
}

.ui-datepicker td.fully-booked a {
    background-color: #dc3545 !important;
    color: white !important;
}

.ui-datepicker td.fully-booked a:hover {
    background-color: #b21f2d !important;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-danger:hover {
    background-color: #b21f2d;
}

/* Footer */
footer {
    background-color: #007bff;
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: auto;
}

footer a {
    color: #ffc107;
}

footer a:hover {
    color: white;
}

.past-date {
    background-color: #e0e0e0 !important; /* Grigio scuro */
    color: #9e9e9e !important; /* Grigio chiaro */
}

.past-date a {
    color: #9e9e9e !important;
    pointer-events: none; /* Disabilita clic */
    text-decoration: none; /* Rimuove la sottolineatura */
}

.past-date:hover {
    background-color: #d6d6d6 !important; /* Grigio più scuro */
}