/* ===============================
   BASE LAYOUT
================================ */

body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Arial, sans-serif;
}

/* Container standard grande */
.container {
    width: 750px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(0,0,0,0.12);
}

/* Container compatto (login / pagine strette) */
.container-small {
    width: 420px;
    margin: 80px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 0 16px rgba(0,0,0,0.12);
    text-align: center;
}

/* Titoli */
h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #222;
}

/* ===============================
   INPUT
================================ */

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #bbb;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    box-sizing: border-box;
}

/* ===============================
   TABELLE (manteniamo le tue)
================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th {
    background: #e6e6e6;
    padding: 12px;
    text-align: left;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.table tr:nth-child(even) {
    background: #f9f9f9;
}

/* ===============================
   PULSANTI UNIFICATI
================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    color: white !important;
    transition: 0.2s ease;
}

/* Rosso SoloBari */
.btn-primary {
    background: #cc0033;
}

.btn-primary:hover {
    background: #a90029;
}

/* Blu */
.btn-blue {
    background: #0052cc;
}

.btn-blue:hover {
    background: #003d9c;
}

/* Verde */
.btn-success {
    background: #008c3c;
}

.btn-success:hover {
    background: #006e2f;
}

/* Grigio */
.btn-dark {
    background: #555;
}

.btn-dark:hover {
    background: #333;
}

/* Rosso scuro */
.btn-danger {
    background: #b30000;
}

.btn-danger:hover {
    background: #7a0000;
}

/* Pulsante full width */
.btn-block {
    width: 100%;
}

/* ===============================
   SEZIONI INTERNE
================================ */

.section-box {
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 30px;
    background: #fafafa;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

/* ===================
   TABELLA CLASSIFICA 
====================== */

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

/* HEADER */
.table thead th {
    background: #f28c57;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border: 1px solid white;
}

.table thead th a {
    color: white;
    text-decoration: none;
    display: block;
}

.table thead th a:hover {
    text-decoration: underline;
}

/* CELLE */
.table tbody td {
    padding: 10px;
    border: 1px solid white;
}

/* RIGHE ALTERNATE */
.table tbody tr:nth-child(odd) {
    background: #dcdcdc;
}

.table tbody tr:nth-child(even) {
    background: #e9e9e9;
}

/* ALLINEAMENTI */
.table tbody td:nth-child(2) {
    text-align: left;
    padding-left: 14px;
}

.table tbody td:not(:nth-child(2)) {
    text-align: center;
}

/* HOVER */
.table tbody tr:hover {
    background: #f5d1c0;
    transition: 0.2s ease;
}

/* Select compatte per pronostici */
.table select {
    width: 60px;
    padding: 4px 6px;
    font-size: 14px;
    height: 30px;
}

/* Celle tabella centratura verticale */
.table td {
    vertical-align: middle;
}

/* Select perfettamente centrate */
.table td select {
    display: block;
    margin: 0 auto;
}