/* TEMA SOCIETÀ SPORTIVA - Font Poppins */
/* Upd 14 Apr */

/* Importa Poppins da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body, h1, h2, h3, p, ul, li, a, button, input, select, textarea {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #FFFFFF; /* Sfondo principale bianco */
    color: #202020; /* Testo scuro */
    line-height: 1.6;
    font-size: 16px;
}
h1, h2 {
    margin-top: 25px;
}
h1, h2 {
    margin-top: 20px;
}
/* Container principale */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background-color: white;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Header */
header {
    background-color: #00769E; /* Blu petrolio */
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}
header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}
header p {
    font-size: 1rem;
    font-weight: 300;
}

/* Footer */
footer {
    text-align: center;
    padding: 12px;
    background-color: #00769E; /* Blu petrolio */
    color: white;
    margin-top: 20px;
    border-radius: 0 0 8px 8px;
}

footer a, .blue-background a {
    color: #B3E5FC; /* Azzurro chiaro */
    text-decoration: none;
    font-weight: 500;
}
footer a:hover, .blue-background a:hover {
    color: #81D4FA; /* Azzurro più acceso */
    text-decoration: underline;
}

/* Barra di navigazione */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #EAEAEA; /* Grigio chiaro */
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #00769E; /* Blu petrolio */
    padding: 8px 14px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: #D4D4D4; /* Grigio più scuro */
}

/* Pulsanti */
button {
    background-color: #EDA75B; /* Arancione estratto */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.button-secondary {
    background-color: #EDA75B; /* Arancione estratto */
}
.button-secondary:hover {
    background-color: #C67624; /* Arancione più scuro */
}

.button-submit {
    background-color: #00769E; /* Blu petrolio */
}
.button-submit:hover {
    background-color: #005A76; /* Blu più scuro */
}
.submit-container {
    display: flex;
    justify-content: flex-end; /* Allinea a destra */
    margin-top: 20px;
}

.sections-filter-btn.selected {
    background-color: #00769E;
    color: white;
    font-weight: bold;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
		font-size: 0.9rem;
}
table th, table td {
    border: 1px solid #D0D0D0;
    padding: 8px;
    text-align: left;
}
table th {
    background-color: #00769E; /* Blu petrolio */
    color: white;
    font-weight: 600;
}
table tr:nth-child(even) {
    background-color: #F5F5F5; /* Grigio molto chiaro */
}
table tr:hover {
    background-color: #E0E0E0; /* Grigio intermedio */
}

.table-gara-setup {
    width: 100%;
    border-collapse: collapse;
}
.table-gara-setup td {
    padding: 8px;
    border: 1px solid #ddd;
		/*text-align: center;*/
}
.table-iscrizioni, .table-iscrizioni-view {
    overflow-x: auto;
    margin-top: 15px;
}
.table-iscrizioni th, .table-iscrizioni td, .table-iscrizioni-view th, .table-iscrizioni-view td {
    text-align: left;
    padding: 8px;
    border: 1px solid #ddd;
    table-layout: fixed; /* Mantiene le colonne della stessa larghezza */
}
.table-container table th, .table-container table td {
    text-align: center;
    padding: 6px;
    font-size: 0.85rem;
}
.riepilogo-iscritti {
    width: 70%;
    border-collapse: collapse;
}

.riepilogo-iscritti th, .riepilogo-iscritti td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.table-iscrizioni th:nth-child(1), .table-iscrizioni td:nth-child(1) { width: 34%; } /* Cognome Nome */
.table-iscrizioni th:nth-child(2), .table-iscrizioni td:nth-child(2) { width: 19%; } /* Nascita */
.table-iscrizioni th:nth-child(3), .table-iscrizioni td:nth-child(3) { width: 21%; } /* Categoria */
.table-iscrizioni th:nth-child(4), .table-iscrizioni td:nth-child(4) { width: 16%; } /* Tessera */
.table-iscrizioni th:nth-child(5), .table-iscrizioni td:nth-child(5) { width: 10%; } /* Rimuovi */

.table-iscrizioni-view th:nth-child(1), .table-iscrizioni-view td:nth-child(1) { width: 30%; } /* Cognome Nome */
.table-iscrizioni-view th:nth-child(2), .table-iscrizioni-view td:nth-child(2) { width: 15%; } /* Nascita */
.table-iscrizioni-view th:nth-child(3), .table-iscrizioni-view td:nth-child(3) { width: 15%; } /* Fascia */
.table-iscrizioni-view th:nth-child(4), .table-iscrizioni-view td:nth-child(4) { width: 15%; } /* Categoria */
.table-iscrizioni-view th:nth-child(5), .table-iscrizioni-view td:nth-child(5) { width: 13%; } /* Tessera */
.table-iscrizioni-view th:nth-child(5), .table-iscrizioni-view td:nth-child(5) { width: 7%; } /* Rimuovi */

.categoria-header {
    background-color: #CCCCCC; /* 00769E */
    font-weight: bold;
    text-align: left;
    font-size: 18px;
    padding: 10px;
    text-indent: 15px;
}
.fascia-header {
    background-color: #DDDDDD;
    font-weight: 600;
    text-align: left;
    font-size: 16px;
    padding: 8px;
    text-indent: 50px;
}

/* Form */
form label {
    display: inline-flex;
    margin-bottom: 5px;
    font-weight: bold;
    color: #202020;
}

form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #C0C0C0;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FAFAFA;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #00769E;
    box-shadow: 0 0 5px rgba(0, 118, 158, 0.5);
}

/* Link generici */
a {
    color: #00769E;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
    color: #005A76;
}

/* Messaggi */
p.error {
    color: #D32F2F;
    font-weight: bold;
}

p.success {
    color: #388E3C;
    font-weight: bold;
}

.warning {
    background-color: #ffeeba;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 15px;
}

/* Setup gara */
.setup-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.setup-nav a {
    text-decoration: none;
    background-color: #009cd1;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
}
.setup-nav a.active {
    background-color: #0056b3;
}

.popup-success {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4CAF50;
    color: white;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: fadeOut 3s ease-in-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

