/* Box medico */
#medico-days {
    padding-bottom: 50px;
}

/* Form utente*/ 
#user-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    width: 100%; 
    border-radius: 10px; 
    margin-bottom: 50px;
}

/* Stile per i singoli campi del modulo */
#user-container div {
    display: flex;
    flex-direction: column; 
}

/* Stile per le etichette */
#user-container label {
    margin-bottom: 5px; 
    font-weight: bold; 
    color: #333; 
}

/* Stile per gli input di testo e il select */
#user-container input[type="text"],
#user-container select {
    padding: 10px; 
    font-size: 16px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    width: 100%; 
    box-sizing: border-box; 
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, .1) !important;
}

/* Stile per i campi obbligatori */
#user-container span {
    color: red; 
    font-weight: bold; 
}

/* Stile per il select */
#user-container select {
    appearance: none; 
    background-color: white; 
}


/* Container principale */
#calendar-slot-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;    
    flex-wrap: nowrap;
}


/* Box calendario */
#calendar-box {
    width: 50%;
    margin-right: 20px; 
    border: 1px solid #eee;
    border-radius: 10px;    
    padding: 10px;    
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

/* Box orari */
#slot-box {
    width: 50%;
    border: 1px solid #eee;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

/* Barra mese*/ 
#current-month {
    width: 100%;
    text-align: center;
    font-size: 18pt;
    padding-bottom: 10px;
}

#calendar-controls a {
    color: black;
    cursor: pointer;
    width: 30px;
}

#calendar-controls a:hover {
    color: grey; 
}


/* Stile per il controllo del calendario */
#calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

#calendar-controls button {
    background-color: grey;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

#calendar-controls span {
    margin: 0 10px;
    font-weight: bold;
}

/* Stile per i giorni della settimana e i giorni del calendario */
#calendar-weekdays, #calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1px;
    height: 100% !important;
}

#calendar-weekdays div, #calendar div {
    text-align: center;
    height: 40px;
    font-weight: bold;
    margin: 10px;
}

#calendar .available {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}

#calendar .available:hover {
    background-color: #d0ffb7;
}

#calendar .selected {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
    cursor: not-allowed;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}

#calendar .disabled {
    color: #ccc;
    background-color: white;
    border: 1px solid #eee;
    line-height: 40px;
    border-radius: 10px;
}


/* Stile per i giorni della settimana e i giorni del calendario_be */
#calendar_be-weekdays, #calendar_be {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 1px;
}

#calendar_be-weekdays div, #calendar_be div {
    text-align: center;
    height: 30px;
    font-weight: bold;
    margin: 10px;
}

#calendar_be .available {
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}

#calendar_be .selected {
    background-color: lightgreen;
    color: black;
    font-weight: bold;
    border: 1px solid #eee;
    line-height: 30px;
    border-radius: 10px;
}

.button-submit_be {
    padding: 8px 60px;
    background-color: cornflowerblue;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid cornflowerblue;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    text-decoration: none;
    text-align: center;
}

.button-submit_be:hover {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
}

/* Stile per il box orari */
#time-slots {
    margin-top: 1px;
    padding: 10px;
}

/* Stile per la lista di slot orari */
#time-slot-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Stile per il pulsante dell'ora selezionata */
.time-slot.selected {
    background-color: lightgreen; 
    color: black; 
    cursor: pointer; 
    font-weight: bold;
}

.time-slot.busy {
    background-color: #ff686b; 
    color: black; 
    cursor: not-allowed; 
}

.time-slot.disabled {
    background-color: lightgray;
    color: white;
    cursor: not-allowed; 
}

.time-slot {
    background-color: white;
    color: black;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 3px;
}

.time-slot:hover {
    background-color: #d0ffb7;
}

/* Stile per il testo della prenotazione */
#prenotazione {
    color: gray;
    font-weight: bold;
    margin-left: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
}

#calendar-submit{
    text-align: center;
    width: 100%;
    padding: 20px;
    font-size: 18px;
    cursor: pointer;
}

/* submit button */ 
.button-submit{
    background-color: #adf7b6;
    color: black;
    border: 0px solid #ddd;
    border-radius: 10px;
    padding: 20px 200px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

.button-submit:hover{
    background-color: lightgreen;
}

.card-container{
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    color: #666;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
    display: flow-root;
    padding: 30px 30px;
    position: relative;
    text-align: center;
    transition: box-shadow .1s ease-in-out;
}

/* BACKEND */

.form-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.form-login h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-login form {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-login div {
    margin-bottom: 15px;
}

.form-login label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-login input[type="email"],
.form-login input[type="password"] {
    width: 280px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-login button[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-login button[type="submit"]:hover {
    background-color: #45a049;
}

.errore-login{
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

.sedi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;      
    text-decoration: none;
}

.sede-card {
    background-color: lightgray;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    padding: 15px;
    width: 300px;
    height: 70px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.sede-card h4 {
    margin: 0; /* Rimuove il margine del tag h3 per centrarlo meglio */
    color: #343434; /* Usa il colore del parent per mantenere la coerenza */
}

.sede-card:hover {
    background-color: white;
    color: grey;
    text-decoration: none;
}

h3 {
    font-size: 24px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: #343434 !important;
}



.table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    vertical-align: top;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden; 
    border: 2px solid #333;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.table td {
    color: gray;
}

.table th {
    background-color: grey;
    color: white;
    font-weight: bold;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tr:hover {
    background-color: #f1f1f1;
    color: black;
}

.table a {
    color: gray;
    margin: 0px;
    padding: 0px;
}


.table svg {
    width: 24px;
    height: 24px;
}

.table svg:hover {
    color: black;
}

.svg {
    color: gray;
    margin: 0px;
    padding: 0px;
    width: 24px;
    height: 24px;
}

.container-table {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 50px;
    padding-left: 50px;
    padding-right: 50px;
}

.content {
    width: 100%;
}

.content-border {
    width: 95%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.content-border-search {
    width: 95%;
    border-radius: 10px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    overflow-x: auto;
}

.paginazione {
    text-align: center;
    margin-top: 20px;
}
.paginazione a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}
.paginazione a:hover {
    background-color: #ddd;
}
.paginazione a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}


.form-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
}

.form-page h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-page form {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.form-page div {
    margin-bottom: 15px;
}

.form-page label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-page input[type="email"],
.form-page input[type="password"],
.form-page input[type="date"],
.form-page input[type="time"],
.form-page input[type="text"],
.form-page select {
    width: 280px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-page textarea {
    width: 90%;
    height: 90%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-page button[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.form-page button[type="submit"]:hover {
    background-color: #45a049;
}

.form-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-page-grid_be {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.form-ricerca input[type="text"],
.form-ricerca input[type="number"],
.form-ricerca input[type="date"],
.form-ricerca input[type="time"],
.form-ricerca select { 
    width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.button-container {
    margin-top: 10px;
    align-items: right;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.action-button {
    padding: 8px 20px;
    background-color: cornflowerblue;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    color: white;
    border: 1px solid cornflowerblue;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    text-decoration: none;
    margin: 10px;
    width: 100px;
    text-align: center;
}

.action-button:hover {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 8px 20px;
}

.action-button-label {
    background-color: white;
    text-decoration: none;
    border: 1px solid grey;
    color: grey;
    font-weight: bold;
    padding: 8px 20px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.1s ease;
    margin: 10px;
    width: 100px;
    text-align: center;
}

.badge {
    padding: 2px;
    width: 80px;
    text-align: center;
    display: block;
}
.badge-success {
    color: #0693e3;
    background-color: lightblue;
}

.badge-denied {
    color: white;
    background-color: lightcoral;
}

.badge-sold {
    color: green;
    background-color: lightgreen;
}

.badge-payment {
    color: #f25757;
    background-color: #ffd670;
}


#box_confirm {
    border: 1px solid #eee;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    padding: 20px;
}

#clearSignature {
    background-color: #adf7b6;
    color: black;
    border: 0px solid #ddd;
    border-radius: 30px;
    padding: 2px 50px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;        
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
}

#clearSignature:hover{
    background-color: lightgreen;
}


.rb-divider-vertical {
    width: max-content;
    height: 80%;
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #ddd;
}


/*menu dropdown */

.rb-dropdown {
    background-color: #f8f9fa; 
    border: 1px solid #ced4da; 
    border-radius: 5px; 
    padding: 10px 15px; 
    font-size: 14px;
    font-weight: bold;
    color: #212529; 
    cursor: pointer;
    display: flex; 
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    white-space: nowrap; 
}

/* Contenitore dropdown */
.rb-dropdown-container {
    position: relative;
    display: inline-block;
}

/* Bottone del dropdown */
.rb-dropdown-button {
    background: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.rb-dropdown-button:hover {
    background: #e6e6e6;
    border-color: #ccc;
}

/* Freccia del dropdown */
.rb-dropdown-arrow {
    font-size: 1em;
    margin-left: 5px;
}

/* Menu del dropdown */
.rb-dropdown {
    position: absolute;
    top: 100%; 
    right: 0; 
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    width: auto;
    min-width: 150px; 
    padding: 5px 0;
    display: none;
}

/* Lista del dropdown */
.rb-dropdown-nav {
    list-style: none; 
    margin: 0;
    padding: 5px 0;
    text-align: left;
}

.rb-dropdown-nav li {
    padding: 0;
}

.rb-dropdown-nav li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.rb-dropdown-nav li a:hover {
    background: #f0f0f0;
    color: #000;
}

/* Divider */
.rb-divider {
    border-top: 1px solid #ddd;
    margin: 5px 0;
}

/* Mostra il dropdown quando il bottone è cliccato */
.rb-dropdown-container:hover .rb-dropdown {
    display: block;
}

.rb-capitalize {
    text-transform: capitalize;
}

.rb-nowrap {
    white-space: nowrap;
}


/* Media query per schermi piccoli (smartphone) */
@media (max-width: 600px) {
   
    #calendar-slot-container {
        flex-wrap: wrap; 
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-right: 20px;  
    }

    #calendar-box, #slot-box {
        display: flex;
        flex-direction: column;
        width: 100%; 
        margin: 0px;
    }

    /* Riduzione della dimensione degli slot orari */
    .time-slot {
        padding: 5px;
        font-size: 12px;
    }

    /* Riduce il numero di colonne degli slot orari */
    #time-slot-list {
        grid-template-columns: repeat(2, 1fr); 
    }

    #slot-box {
        margin-top: 20px;
        border: 1px solid #eee;
        border-radius: 10px;
        padding-left: 10px;
        padding-right: 10px;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    }
    
    .button-submit {
        background-color: #adf7b6;
        color: black;
        border: 0px solid #ddd;
        border-radius: 10px;
        padding: 20px 50px;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, .1) !important;
    }

    #calendar-submit{
        text-align: center;
        width: 100%;
        font-size: 18px;
        cursor: pointer;
        margin: 0px;
    }

    #user-container {
        display: flex;
        flex-direction: column;
        gap: 20px; 
        width: 100%; 
        border-radius: 10px; 
        margin-bottom: 50px;
    }

    .form-page-grid {
        grid-template-columns: repeat(1, 1fr);
    }




}