/* =========================
   SFONDO GENERALE
========================= */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    background: url("sfondo_garage.jpg.png") no-repeat center center fixed;
    background-size: cover;

    /* leggero strato scuro per leggere meglio il contenuto */
    backdrop-filter: blur(3px);
}

/* =========================
   CONTENITORI GENERICI
========================= */
.container, .menu-container, .crud-container, .login-container {
    width: 380px;
    max-width: 90%;
    margin: 80px auto;
    padding: 30px;

    background: rgba(15, 25, 40, 0.75); /* blu acciaio trasparente */
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);

    color: white;
    text-align: center;
}

/* =========================
   TITOLI
========================= */
h2 {
    font-size: 2em;
    color: #A7C4FF; /* azzurro metallico */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(100,150,255,0.8);
}

/* =========================
   BOTTONI
========================= */
button, .menu-item, .logout, .back-btn {
    display: block;
    width: 90%;
    margin: 12px auto;
    padding: 12px;

    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;

    border-radius: 8px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #1A2D4D, #3A5F8F); /* sfumatura dal blu scuro al blu metallo */
    color: #E6EEFF;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: 0.25s ease;
}

button:hover, .menu-item:hover, .logout:hover, .back-btn:hover {
    background: linear-gradient(135deg, #3A5F8F, #6BA8FF);
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

/* =========================
   INPUT
========================= */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], select {
    width: 90%;
    padding: 10px;

    border-radius: 6px;
    border: none;

    margin: 10px 0;
    font-size: 1em;

    background: rgba(255,255,255,0.1);
    color: white;
    border-bottom: 2px solid #6BA8FF;
}

input::placeholder {
    color: #AAC6FF;
}

/* =========================
   TABELLE CRUD
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: white;
}

table th {
    background: rgba(40, 70, 110, 0.9);
    padding: 10px;
    border-bottom: 2px solid #6BA8FF;
}

table td {
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

table tr:hover td {
    background: rgba(80,120,180,0.4);
}

/* =========================
   LINK "TORNA AL MENU"
========================= */
.back-btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #2F3E52, #6F8FA6);
}
