/* ==========================================
   1. REGOLE GLOBALI
============================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f7f6;
    padding: 20px;
}

/* ==========================================
   2. STILI PER LOGIN E REGISTRAZIONE (index e registrazione.php)
============================================= */
.form-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 10vh auto; /* Centra perfettamente a prescindere dallo schermo */
}

.form-container h1 {
    color: #333;
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
    font-size: 14px;
}

/* Ora prende tutti i campi, incluso quello della mail! */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}

.form-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.form-container input[type="submit"]:hover {
    background-color: #0056b3;
}

.form-container p {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}


/* ==========================================
   3. STILI AREA PRIVATA (session.php)
============================================= */
.dashboard-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 40px auto; 
    text-align: left; 
}

.header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-testo h1 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}

.profilo-testo {
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.btn-esci {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-esci:hover {
    background-color: #c82333;
}

.separatore {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 30px;
}

.form-aggiungi {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.input-testo {
    flex: 1; 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.btn-aggiungi {
    padding: 12px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

.btn-aggiungi:hover {
    background-color: #0056b3;
}

.tabella-promemoria {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tabella-promemoria th,
.tabella-promemoria td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.tabella-promemoria th {
    background-color: #f8f9fa;
    color: #333;
}

.colonna-azione {
    text-align: right;
}

.btn-elimina {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.btn-elimina:hover {
    background-color: #c82333;
}

.testo-vuoto {
    text-align: center;
    color: #777;
    font-style: italic;
}