/* =========================
   RESET BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    padding: 20px;
}

/* =========================
   HEADER
========================= */
h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #1f2d3d;
}

a {
    text-decoration: none;
    color: #1a73e8;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   BOTTONI
========================= */
button,
.btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

button:hover,
.btn:hover {
    background-color: #155ab6;
}

/* =========================
   FORM
========================= */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
}

input:focus {
    border-color: #1a73e8;
    outline: none;
}

/* =========================
   TABELLA
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

th {
    background-color: #1f2d3d;
    color: white;
    text-align: left;
    padding: 12px;
    font-weight: 500;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

tr:hover {
    background-color: #f2f6fc;
}

/* =========================
   HEADER BAR
========================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.topbar a {
    margin-left: 10px;
}

/* =========================
   CARD CONTAINER
========================= */
.container {
    max-width: 1100px;
    margin: auto;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        background: white;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    td {
        border: none;
        padding: 6px 0;
    }

    td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 4px;
        color: #555;
    }
}
