body {
    background-color: #f5f5f5;
}

.registration-form {
    padding: 5px 0;
}

.registration-form form {
    background-color: #fff;
    max-width: 400px;
    margin: auto;
    padding: 30px 30px;
    border-radius: 10px;
    box-shadow: 1px 4px 5px 3px rgb(47, 47, 48);
}

.registration-form .form-icon {
    text-align: center;
    background-color: #5891ff;
    border-radius: 50%;
    font-size: 40px;
    color: white;
    width: 100px;
    height: 100px;
    margin: auto;
    margin-bottom: 50px;
    line-height: 100px;
}

.registration-form .item {
    border-radius: 20px;
    margin-bottom: 25px;
    padding: 10px 20px;
}

.registration-form .create-account {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: #5791ff;
    border: none;
    color: white;
    margin-top: 20px;
}

.registration-form .social-media {
    max-width: 600px;
    background-color: #fff;
    margin: auto;
    padding: 35px 0;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    color: #9fadca;
    border-top: 1px solid #dee9ff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.075);
}

.registration-form .social-icons {
    margin-top: 30px;
    margin-bottom: 16px;
}

.registration-form .social-icons a {
    font-size: 23px;
    margin: 0 3px;
    color: #5691ff;
    border: 1px solid;
    border-radius: 50%;
    width: 45px;
    display: inline-block;
    height: 45px;
    text-align: center;
    background-color: #fff;
    line-height: 45px;
}

.registration-form .social-icons a:hover {
    text-decoration: none;
    opacity: 0.6;
}

/*--------------------------------------------------------------
# Tabelle DB Prenotazioni - Coupon - Contatti (versione adattiva)
--------------------------------------------------------------*/
table {
    font-family: arial, sans-serif;
    border: 2px solid gray;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 2px 2px 4px #000000;
    width: auto;
    min-width: 90%;
    table-layout: auto;
}

/* Celle */
td,
th {
    border: 1px solid #77869a;
    text-align: center;
    padding: 6px;
    white-space: nowrap;
    min-width: auto;
}

/* Alternanza righe */
tr:nth-child(even) {
    background-color: #dddddd;
}

/* Wrapper responsive */
.table-responsive {
    width: 90%;
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}

/* Header sticky */
table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

/* Scrollbar minimale */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #ddd;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #aaa;
}

/* Margini su mobile */
@media (max-width: 768px) {
    .table-responsive {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/*--------------------------------------------------------------
# Messaggio dopo Delete sulle tabelle
--------------------------------------------------------------*/
.toast {
    position: fixed;
    top: 4.5em;
    /* posizione perfetta sotto il nome utente */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    /* parte leggermente più in alto */
    background-color: #28a745;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

.toast.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    /* scende dolcemente */
}

.toast.error {
    background-color: #d9534f;
}

/* allineamento testo e radio button sul login */
.container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.form-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
}

.form-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.radio-container {
    display: flex;
    align-items: center;
    width: 20px;
    /* larghezza fissa per i numeri e radio */
}

.radio-container span {
    margin-right: 5px;
}

.form-item label {
    margin-left: 25px;
    /* spazio tra radio e testo */
    text-align: left;
}

#progress-container {
    width: 100%;
    background-color: #ddd;
    height: 20px;
    margin-top: 10px;
    border-radius: 10px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 100%;
    background-color: #4caf50;
    transition: width 1s linear;
}

/* icona cestino in tabelle form */
.deleteBtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #376172;
    border-radius: 6px;
    background-color: #c8cac9;
    color: rgb(142, 4, 4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.deleteBtn i {
    font-size: 1.2em;
    color: #212529;
    /* nero */
    line-height: 1;
}

.deleteBtn:hover {
    background-color: #dc3545;
}

.deleteBtn:hover i {
    color: white;
}

/*  Login Accessi */
.is-invalid {
    border: 2px solid red;
}

.invalid-feedback {
    color: red;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 576px) {
    .registration-form form {
        padding: 30px 10px;
        max-width: 300px;
    }

    .registration-form .form-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        line-height: 70px;
    }
}