/* Base Font */
html {
    font-size: 14px;
    font-family: Arial, sans-serif;
    position: relative;

    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../images/background.webp) center center/cover no-repeat;
    background-attachment: fixed;
    font-size: 16px;
    color: #333;
}

/* Header */
header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

/* Dashboard Card */
.dashboard-card {
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    width: 100%;
}

    .dashboard-card .card-title,
    .dashboard-card i {
        color: #4CAF50; /* Verde principale */
    }

    .dashboard-card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

/* Dashboard Container */
.dashboard-container {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* User Info */
.user-greeting {
    font-size: 0.9rem;
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .btn.custom-btn {
        background-color: #4CAF50; /* Verde principale */
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 4px;
    }

        .btn.custom-btn:hover {
            background-color: #388E3C; /* Verde scuro */
        }

    .btn.btn-danger {
        background-color: #E53935; /* Rosso */
        color: white;
    }

        .btn.btn-danger:hover {
            background-color: #D32F2F; /* Rosso scuro */
        }

    .btn:hover, .btn:focus, .btn:active {
        background-color: #388E3C; /* Verde scuro */
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.3); /* Ombra verde */
    }

        .btn:focus, .btn:active:focus {
            outline: none;
            box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.3), 0 0 0 0.3rem rgba(76, 175, 80, 0.5); /* Ombra verde */
        }

/* Form Elements */
.form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .form-control:focus {
        border-color: #4CAF50; /* Verde principale */
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.2); /* Ombra verde */
    }

form {
    margin-bottom: 100px; /* o un valore sufficiente */
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.5); /* Ombra verde */
}

/* Links */
a, .btn-link {
    color: #4CAF50; /* Verde principale */
    text-decoration: none;
    transition: color 0.2s ease;
}

    a:hover, .btn-link:hover {
        color: #388E3C; /* Verde scuro */
    }

/* Content */
.content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-translucent {
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Page Container */
.page-container {
    margin-top: 5rem;
}

/* Tables */
.custom-table {
    background-color: rgba(255, 255, 255, 0.5);
}

.transparent-table {
    background-color: rgba(255, 255, 255, 0.5); /* Colore bianco semi-trasparente */
    border-color: rgba(0, 0, 0, 0.2); /* Bordo nero semi-trasparente */
}

    .transparent-table.table-striped tbody tr:nth-of-type(odd),
    .transparent-table.table-striped tbody tr:nth-of-type(even) {
        background-color: rgba(255, 255, 255, 0.4); /* Alternanza con trasparenza leggera */
    }

    .transparent-table th,
    .transparent-table td {
        background-color: rgba(255, 255, 255, 0.2); /* Sfondo delle celle */
        border-color: rgba(0, 0, 0, 0.2); /* Bordi leggeri */
    }



/* Stile generale per la card di registrazione */
.register-card {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

/* Titolo con icona */
.text-center h4 i {
    margin-right: 5px;
    color: #4CAF50; /* Verde principale */
}

/* Stile del bottone di registrazione */
#registerSubmit {
    background: #4CAF50; /* Verde principale */
    border: none;
    font-weight: bold;
    color: white;
    transition: background 0.3s;
}

    #registerSubmit:hover {
        background: #388E3C; /* Verde scuro */
    }

/* Icone nei campi di input */
.form-floating label i {
    margin-right: 5px;
}

/* Bottone di autenticazione esterna */
.btn-outline-primary {
    color: #4CAF50; /* Verde principale */
    border-color: #4CAF50;
    transition: color 0.3s, background-color 0.3s;
}

    .btn-outline-primary:hover {
        background-color: #4CAF50; /* Verde principale */
        color: white;
    }

.image-preview-container {
    max-width: 200px; /* Imposta la larghezza massima dell'anteprima */
    overflow: hidden; /* Nasconde la parte che va oltre i bordi */
}

.img-preview {
    width: 100%;
    height: auto;
    cursor: pointer; /* Cambia il cursore per indicare che l'immagine è cliccabile */
    border: 2px solid #ddd; /* Aggiunge un bordo all'immagine */
    border-radius: 8px;
}

    .img-preview:hover {
        border-color: #007bff; /* Cambia il bordo al passaggio del mouse */
    }