/* ====== БАЗОВЫЙ ФОН И ТЕКСТ ====== */
body {
  background-color: #1e1e1e;
  color: #fff;
  font-family: sans-serif;
  padding: 20px;
  margin: 0;
}

/* ====== КОНТЕЙНЕРЫ ====== */
.container {
  max-width: 400px;
  margin: auto;
  padding: 20px;
  background-color: #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.admin-panel {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background-color: #2f2f2f;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
}

/* ====== ЗАГОЛОВКИ ====== */
.admin-panel h3 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: center;
  color: #ffd700;
}

.admin-panel section {
  margin-top: 25px;
}

.admin-panel h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ccc;
}

h2 {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

/* ====== ФОРМЫ ====== */
label {
  margin-top: 15px;
  font-size: 16px;
  display: block;
}

input,
select {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #1e1e1e;
  color: white;
  box-sizing: border-box;
}

input[type="text"]::placeholder {
  color: #888;
}

/* ====== КНОПКИ ====== */
button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #3a3a3a;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #555;
}

/* ====== ТЕКСТОВЫЕ БЛОКИ ====== */
.status,
.records,
#adminRecords {
  margin-top: 20px;
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* ====== КНОПКИ УДАЛЕНИЯ ====== */
.deleteBtn,
.adminDeleteBtn {
  margin-left: 10px;
  padding: 4px 8px;
  font-size: 14px;
  background-color: #5a1e1e;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.deleteBtn:hover,
.adminDeleteBtn:hover {
  background-color: #7a2e2e;
}

/* ====== FLATPICKR (ТЁМНАЯ ТЕМА) ====== */
.flatpickr-calendar {
  background-color: #2a2a2a !important;
  color: white !important;
  border: 1px solid #444 !important;
}

.flatpickr-day.selected {
  background-color: #555 !important;
  border-color: #777 !important;
}

.flatpickr-day.today {
  border-color: #ffd700 !important;
}

/* ====== ВЫБОР ДАТЫ (УЛУЧШЕННЫЙ) ====== */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #888;
  border-radius: 6px;
  padding: 12px;
  font-size: 17px;
  font-weight: 500;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input[type="date"]:hover {
  border-color: #ffd700;
  background-color: #262626;
}

input[type="date"]:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.45);
  outline: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(80%) sepia(90%) saturate(600%) hue-rotate(10deg) brightness(1.2);
  cursor: pointer;
  opacity: 0.9;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* ====== МОБИЛЬНАЯ АДАПТАЦИЯ ====== */
@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container,
  .admin-panel {
    padding: 15px;
    margin: 10px auto;
    border-radius: 8px;
  }

  h2,
  .admin-panel h3 {
    font-size: 18px;
  }

  label,
  input,
  select,
  button {
    font-size: 15px;
  }

  .deleteBtn,
  .adminDeleteBtn {
    font-size: 13px;
    padding: 3px 6px;
  }
}
