/* ===============================
   SECTION
=============================== */

.records-section {
  padding-top: 0 !important;
}

.records-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* ===============================
   CUSTOM SELECT
=============================== */

.records-select {
  position: relative;
  width: 220px;
}

.select-trigger {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease;
}

.select-trigger:hover {
  background: rgba(255,255,255,0.08);
}

.select-options {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: #111827;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 1000;
}

.select-options.active {
  display: block;
}

.select-options li {
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.select-options li:hover {
  background: rgba(255,255,255,0.08);
}

/* ===============================
   SEX TOGGLE
=============================== */

.sex-toggle {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  padding: 6px;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: white;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.25s ease;
}

.toggle-btn.active {
  transform: scale(1.05);
}

/* Femme actif */
.toggle-btn[data-sexe="Femme"].active {
  background: linear-gradient(135deg, #ff3ca6, #ff6ec7);
  color: white;
}

/* Homme actif */
.toggle-btn[data-sexe="Homme"].active {
  background: linear-gradient(135deg, #3c78ff, #4da6ff);
  color: white;
}

/* ===============================
   TABLE
=============================== */

.records-table-container {
  overflow-x: auto;
  padding: 0 1rem;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: rgba(10, 18, 30, 0.9);
  border-radius: 12px;
  overflow: hidden;
}

.records-table th {
  padding: 1rem;
  color: white;
  transition: background 0.3s ease;
}

.records-table td {
  padding: 1.3rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}

.records-table tbody tr:hover td {
  background: rgba(255,255,255,0.08);
}

.records-table td:first-child {
  font-weight: 600;
  background: rgba(255,255,255,0.06);
}

/* ===============================
   MODE COLORS
=============================== */

/* Femme */
.records-table.female-mode th {
  background: #ff4db8;
}

/* Homme */
.records-table.male-mode th {
  background: #4da6ff;
}

/* ===============================
   RECORD CONTENT
=============================== */

.record-name.female {
  color: #ff4db8;
}

.record-name.male {
  color: #4da6ff;
}

.record-time {
  font-weight: bold;
}

.record-year {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===============================
   TITLE UNDERLINE TRANSITION
=============================== */

/* Mode femme */
body.female-mode .page-title::after {
  background: #ff4db8;
}

/* Mode homme */
body.male-mode .page-title::after {
  background: #4da6ff;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 992px) {

  .records-table-container,
  .container {
    padding: 0 !important;
  }

  .records-section {
    margin-top: 1em !important;
  }

  .records-table {
    border-radius: 0 !important;
  }

  .page-title {
    margin-bottom: 1em !important;
  }

  .records-table {
  table-layout: fixed;
}

  .records-table th,
  .records-table td {
    width: calc(100% / 7);
    word-wrap: break-word;
  }

  .record-time {
    font-size: 0.5rem;
  }

  .record-year {
    font-size: 0.4rem;
  }

  .records-table {
    font-size: 0.5rem;
  }

  .records-table td{
    padding: 2px !important;
  }

  .records-table th{
    padding: 1.5em 2px ;
  }
}


