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

.container {
  max-width: 1400px;
  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;
}

/* *** TABELLA PRINCIPALE *** */

.table {
  width: 100%;
  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: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;
  border: 1px solid #ddd;
  border-radius: 0 !important;
  overflow: hidden;
}

.discipline-header {
  background-color: #007bff;
  color: #fff;
  padding: 0.3rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* *** TABELLA RISULTATI *** */

.table-responsive {
  overflow-x: auto; 
  max-width: 100%;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  border-radius: 0 !important;
}

.results-table thead th {
  position: sticky;
  top: 0;
  background-color: #007bff;
  color: #fff;
  text-align: left;
  padding: 0.3rem 0.5rem;
  border-radius: 0 !important;
  vertical-align: top;
  z-index: 10;
}

.spacing-div {
  margin-bottom: 20px; 
}




.results-table tbody td {
  padding: 0.3rem 0.5rem;
  border: none;
}


.odd-row {
background-color: #f5f5f5;
}
.even-row {
background-color: #ffffff;
}


.highlight-current-year {
border-left: 4px solid #5cb85c;

}


.col-rank {
  width: 3em;
  text-align: center;
}
.col-disciplina {
  width: 16em;               
  text-align: left;
  
}

.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;
}

.details-row td {
  padding: 0rem 0.5rem !important;
  line-height: 1 !important; 

}

.details-cell {
  padding-left: 0.2rem !important;
  line-height:1
}



.results-table td small {
  font-size: 0.85em;
  color: #666;
}
