/* Base styling (formerly "redblack" theme) */
body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  color: #ff3333;
}

a {
  color: #ff3333;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 20px;
}

.table-container {
  margin: 20px auto;
  width: min(92%, 1080px);
  background-color: #1b1b1b;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-row-dark {
  background-color: #1e1e1e;
}

.data-row-light {
  background-color: #2a2a2a;
}

.data-row {
  padding: 10px;
  border-bottom: 1px solid #333;
}

.data-column {
  margin-bottom: 5px;
}

.search-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px;
}
.search-controls input[type="text"],
.search-controls input[type="date"] {
  padding: 6px 10px;
}

.btn,
button {
  background-color: #ff3333;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover,
button:hover {
  background-color: #cc0000;
}

input,
select,
textarea {
  background-color: #1b1b1b;
  border: 1px solid #ff3333;
  color: #fff;
  border-radius: 4px;
  padding: 8px;
}

#toast {
  background-color: #ff3333;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

.hidden {
  display: none !important;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .table-container {
    width: 95%;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .table-container {
    width: 96%;
    max-width: 100vw;
    padding: 16px;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  th,
  td {
    white-space: nowrap;
  }
  .btn,
  button {
    width: 100%;
    text-align: center;
  }
  .search-controls {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  input,
  select,
  textarea {
    width: 100%;
  }
  .search-controls {
    gap: 8px;
  }
  #search,
  #date-picker {
    width: auto;
    max-width: 260px;
    display: inline-block;
  }
}
