 /* ===== Base Layout ===== */
html, body {
  margin: 0;
  padding: 0;
  background: black;
  color: white;
  font-family: Arial, sans-serif;
}

 a {
      display: block;
      width: 95%;
      color: #ccc;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      text-align: right;
      margin: 16px 20px 0 0;
      transition: 0.2s;
    }

    a:hover {
      color: #e60000;
    }

    h1 {
      font-family: 'Teko', sans-serif;
      text-align: center;
      color: #e60000;
      font-size: 48px;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 40px auto 30px;
      text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
    }

h2 {
  font-size: 14pt;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0px auto;
  margin-bottom: 30px;
  max-width: 70%;
  padding: 0px 20px;
}

.tabs button {
  background: lightgrey;
  color: black;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14pt;
  font-weight: bold;
  transition: background 0.2s;
}

.tabs button:hover {
  background: #ccc;
}

.tabs button.active {
  background: #d72638;
  color: white;
}

/* ===== Form & Inputs ===== */
.main-content {
  max-width: 90%;
  margin: 0 auto;
}

form {
  max-width: 400px;
  margin: 0 auto;
}

select, input[type="text"], input[type="datetime-local"], button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  background: #222;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13pt;
}

.units-toggle {
  display: flex;
  justify-content: left;
  gap: 25px;
  margin-bottom: 15px;
}

.units-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: #1c1c1c;
  border: 1px solid #444;
  transition: background 0.2s;
}

.units-toggle label:hover {
  background-color: #2a2a2a;
}

.units-toggle input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #888;
  background: #222;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.units-toggle input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #26a69a;
  top: 2px;
  left: 2px;
  border-radius: 2px;
}

button.submit {
  background: #26a69a;
  transition: background 0.2s;
}

button.submit:hover {
  background: #33c4b6;
}

.disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .main-content {
    max-width: 95%;
    padding: 10px;
  }

  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .tabs button {
    flex: 1;
    padding: 8px;
    font-size: 13px;
  }

  form {
    max-width: 100%;
    padding: 0 10px;
  }

  select, input[type="text"], input[type="datetime-local"], button {
    font-size: 13pt;
    padding: 8px;
    width: 100%;
  }

  button.submit {
    width: 100%;
  }

  .units-toggle {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .units-toggle label {
    flex: 1 1 45%;
    justify-content: left;
  }
}

/* ===== Workout Log Section ===== */
#workoutLogContainer {
  margin-top: 30px;
  font-size: 14pt;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#workoutLogContainer h2 {
  font-family: 'Teko', sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 200px;
  color: #cfcfcf;
  text-shadow: 0 0 4px rgba(80, 180, 255, 0.25),
               0 0 12px rgba(100, 200, 255, 0.08);
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
  margin-top: 50px;
}

/* ===== Table Style ===== */
.workout-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #0d0d0d;
  border-radius: 5px;
  overflow-x: auto;
}

.workout-table th, .workout-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #1a1a1a;
  color: #ddd;
  text-align: left;
  font-size: 14px;
}

.workout-table th {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workout-table td strong {
  color: #fff;
}

/* Type color borders */
.type-weights td {
  border-left: 3px solid #ffa500;
}

.type-cardio td {
  border-left: 3px solid #26a69a;
}

.type-other td {
  border-left: 3px solid #ff4cb2;
}

/* Hover Row Effect */
.workout-table tr:hover td {
  background: #111;
  transition: background 0.2s;
}

/* Make the whole log area horizontally scrollable on small screens */
@media (max-width: 600px) {
  #workoutLogContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* prevent wrapping inside the table */
  .workout-table th,
  .workout-table td {
    white-space: nowrap;
  }

  /* force table wide enough to trigger scroll */
  .workout-table {
    min-width: 400px; /* tweak until it feels right */
  }
}

/* ===== Action Buttons ===== */
.action-buttons {
  text-align: right;
}

.action-buttons button {
  border: none;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-buttons .edit {
  background: grey;
  color: black;
}

.action-buttons .edit:hover {
  background: #33c4b6;
}

.action-buttons .delete {
  background: grey;
  color: black;
}

.action-buttons .delete:hover {
  background: #ff3c50;
}

/* ===== Misc ===== */
.login-warning {
  text-align: center;
  color: #ff4c4c;
  margin-top: 20px;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ===== 9MORE REPS Form Redesign ===== */
#workoutFormContainer {
  background: none;
  border: none;
  padding: 30px 25px 40px;
  margin: 30px auto;
  max-width: 550px;
}

#workoutFormContainer:hover {
  box-shadow: 0 0 18px rgba(230, 0, 0, 0.35);
}

/* Tabs redesign */
.tabs button {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #bbb;
  font-family: 'Teko', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 10px 25px;
  transition: all 0.25s ease;
}
.tabs button:hover {
  background: #2a2a2a;
  color: #fff;
}
.tabs button.active {
  background: #e60000;
  color: #fff;
  box-shadow: 0 0 10px rgba(230, 0, 0, 0.4);
  transform: scale(1.02);
}

/* Input field style */
form select,
form input[type="text"],
form input[type="datetime-local"] {
  background: #0f0f0f;
  border: 1px solid #333;
  color: #eee;
  border-radius: 8px;
  font-size: 14pt;
  padding: 12px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
form select:focus,
form input:focus {
  border-color: #e60000;
  box-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.15);
  cursor: pointer;
}


/* Radio toggle buttons */
.units-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}
.units-toggle label {
  background: #111;
  border: 1px solid #333;
  color: #bbb;
  font-size: 13pt;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.25s;
  cursor: pointer;
}
.units-toggle input[type="radio"]:checked + label,
.units-toggle label:hover {
  background: #e60000;
  color: #fff;
  border-color: #e60000;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.4);
}

/* Submit button */
button.submit {
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 12px rgba(230, 0, 0, 0.25);
}
button.submit:hover {
  background: #ff3030;
  box-shadow: 0 0 18px rgba(255, 60, 60, 0.45);
  transform: translateY(-1px);
}

/* Add workout toggle */
#toggleFormBtn {
    font-family: 'Teko', sans-serif;
  background: none;
  border: none;
  color: #e60000;
  font-size: 20pt;
  cursor: pointer;
  margin-top: 20px;
}

hr{
    display: block;
    width:95%;
    color: dimgrey;
    background-color: dimgrey;
    height: 2px;
    border: none;
}


