:root {
  --bg: #212026;
  --panel: #2a2931;
  --panel-2: #31303a;
  --border: #3c3a45;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #f15f0a;
  --accent-soft: rgba(241, 95, 10, 0.18);
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  --radius: 18px;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.admin-panel {
  max-width: 500px;
  margin: 40px auto;
  padding: 24px;
  background: var(--panel-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.admin-panel h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-save:hover {
  background: rgba(233,1,0,0.85);
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.login-box {
  background: var(--panel-2);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 350px;
  width: 100%;
}

.login-box h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.login-box input {
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 6px 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.login-box button:hover {
  background: rgba(233,1,0,0.85);
}

/* Wrapper for side-by-side dropdowns */
.time-dropdown-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dash between dropdowns */
.time-separator {
  color: #cfcfcf;
  font-weight: 600;
}

/* Rounded rectangle dropdowns */
.time-dropdown {
  flex: 1;
  padding: 6px 12px;
  border-radius: 12px;           /* Rounded corners */
  background: #2a2931;           /* Panel background */
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  appearance: none;
  transition: 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  text-align: center;
}

.time-dropdown:hover {
  background: rgba(241,95,10,0.18);
  box-shadow: 0 4px 10px rgba(241,95,10,0.4);
  transform: translateY(-2px);
  color: #fff;
}

.time-dropdown option {
  padding: 8px 12px;
  background: #2a2931;
  color: #cfcfcf;
}

.time-dropdown option:checked {
  background: rgba(241,95,10,0.3);
  color: #fff;
}

.calendar-day-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 6px 10px;
  border-radius: 50%;
  background: #2a2931;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid #3c3a45;
  cursor: pointer;
  transition: 0.2s ease;
}

.calendar-day-dropdown:hover,
.calendar-day-dropdown:focus {
  background: rgba(241,95,10,0.3);
  color: #fff;
  outline: none;
  box-shadow: 0 4px 10px rgba(241,95,10,0.4);
}

/* Calendar container */
.calendar-container {
  margin-top: 12px;
  padding: 14px;
  background: #2a2931;
  border: 1px solid #3c3a45;
  border-radius: 16px;
}

/* Month + year selectors row */
.calendar-header {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-wheel {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #3c3a45;
  background: #31303a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Weekday labels row */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  text-align: center;
}

.calendar-weekday {
  font-size: 12px;
  font-weight: 700;
  color: #cfcfcf;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Date grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  justify-items: center;
}

/* Empty spacer cells */
.calendar-empty {
  width: 40px;
  height: 40px;
}

/* Circular date buttons */
.calendar-day {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #3c3a45;
  background: #31303a;
  color: #cfcfcf;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}

/* Hover */
.calendar-day:hover {
  transform: translateY(-2px);
  background: linear-gradient(0deg, #e90100 0%, #212026 100%);
  border-color: #e90100;
  color: #fff;
  box-shadow: 0 4px 10px rgba(233, 1, 0, 0.35);
}

/* Selected */
.calendar-day.selected {
  background: linear-gradient(0deg, #e90100 0%, #212026 100%);
  border-color: #e90100;
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 1, 0, 0.35);
}

/* Return Home button wrapper */
.return-home-wrap {
  margin: 24px auto 0;
  text-align: center;
}

/* Return Home button */
.return-home-btn {
  display: inline-block;
  padding: 10px 16px;
  background: linear-gradient(180deg, #e90100 0%, #b30000 100%);
  border: 2px solid #e90100;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
  box-shadow: 0 4px 12px rgba(233, 1, 0, 0.25);
}

.return-home-btn:hover {
  background: linear-gradient(0deg, #00a651 0%, #212026 100%);
  border-color: #00a651;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 166, 81, 0.3);
  transform: translateY(-2px);
}

/* Ensure text is not selectable to mimic button */
.calendar-btn span,
.calendar-btn img {
  user-select: none;
}
