body {
    font-family: 'Roboto', sans-serif;
    background-color: #f3f4f6;
    color: #333;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 1400px; /* Aumentato da 1200px */
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.filter .form-row {
    margin-bottom: 15px;
}

.filter select,
.filter input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.filter select:focus,
.filter input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

button#searchBtn {
    padding: 15px;
    font-size: 18px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button#searchBtn:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

button#searchBtn:disabled {
    background-color: #6c757d;
}

.table {
    width: 100%; /* Assicurati che la tabella occupi l'intera larghezza */
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table th, .table td {
    padding: 15px;
    border: 1px solid #dee2e6;
}

.table th {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

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

.table tr:hover {
    background-color: #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    color: #007bff;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination a.active {
    background-color: #007bff;
    color: #fff;
}

.my-discipline-block {
    margin-bottom: 3rem; /* o anche 0 se vuoi */
    border: 1px solid #ddd;
    border-radius: 0 !important;
    overflow: hidden;
  }
  
  /* Riga blu con disciplina e categoria */
  .discipline-header {
    background-color: #007bff;
    color: #fff;
    padding: 0.3rem 0.8rem; /* Riduci il padding di top/bottom */
    margin-botto 10px;       /* Niente spazio sotto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 !important;
  }
  
  .table-responsive {
    overflow-x: auto; 
    max-width: 100%;
  }
  
  /* La tabella dei risultati */
  .results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0; /* Rimuovi eventuale margin */
    border-radius: 0 !important;
  }
  
  /* Riga di intestazione (#, Risultato, etc.) */
  .results-table thead th {
    position: sticky;       /* Sticky header */
    top: 0;
    background-color: #007bff;
    color: #fff;
    text-align: left;
    padding: 0.3rem 0.5rem; /* Riduci il padding */
    border-radius: 0 !important;
    vertical-align: top;
    z-index: 10;
  }
  

  .results-table tbody td {
    padding: 0.3rem 0.5rem;
  }
  
  /* Righe alternate (zebrate) */
  .results-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
  }
  
  

  .col-rank {
    width: 3em; /* Ad esempio 3em, per contenere 3 cifre al massimo */
    text-align: center;
  }
  

  .col-result {
    width: 6em; 
    text-align: center !important;
  }
  
  .col-nome {
 
    min-width: 200px;          
    white-space: nowrap;      
  } 


   .col-anno {
    width: 5em;
    text-align: center !important;
  }


  .col-date-luogo {
    width: 15em;
    text-align: center !important;
  }
  

  .results-table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
  }
  
 
  .results-table tbody td {
    border: none;
    padding: 0.5rem 0.75rem;
  }
  
 
  .results-table td small {
    font-size: 0.85em;
    color: #666;
  }
  