:root {
  --bg-dark: #181c1f;
  --fg-dark: #e6e6e6;
  --bg-light: #f4f5f7;
  --fg-light: #181c1f;
  --primary: #5677fc;
  --error: #ff5252;
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--fg-dark);
  transition: background 0.2s, color 0.2s;
}
body.light-mode {
  background: var(--bg-light);
  color: var(--fg-light);
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-box {
  background: rgba(40,40,40,0.97);
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.17);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 370px;
  text-align: center;
}
body.light-mode .login-box {
  background: rgba(255,255,255,0.98);
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 1rem;
  background: #23272b;
  color: #e6e6e6;
  transition: background 0.2s, color 0.2s;
}
body.light-mode input[type="text"], body.light-mode input[type="password"] {
  background: #f8f8f8;
  color: #23272b;
  border: 1px solid #bbb;
}

button[type="submit"], #toggle-mode {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
button[type="submit"]:hover, #toggle-mode:hover {
  background: #3552b4;
}
#error {
  color: var(--error);
}
@media (max-width: 480px) {
  .login-box {
    padding: 1.5rem 0.5rem;
    max-width: 97vw;
  }
}
.admin-container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logout-btn {
  text-decoration: none;
  background-color: #c62828;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
}
.logout-btn:hover {
  background-color: #a32020;
}

/* Táblázat */
.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

table.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
table th, table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #444;
}
body.light-mode table th, body.light-mode table td {
  border-bottom: 1px solid #ccc;
}
table tr:hover {
  background-color: rgba(255,255,255,0.05);
}
.booking-container {
  max-width: 400px;
  margin: 30px auto;
  padding: 1.5rem 1.2rem;
  background: rgba(38, 44, 54, 0.93);
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.135);
}
body.light-mode .booking-container {
  background: #f8f8f8;
}
h2 { text-align: center; }
.booking-form label {
  display: block;
  margin-bottom: 0.67em;
  font-weight: 500;
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="datetime-local"] {
  width: 100%;
  padding: 9px;
  margin-top: 4px;
  margin-bottom: 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #272a30;
  color: #fff;
}
body.light-mode .booking-form input {
  background: #fff;
  color: #272a30;
  border: 1px solid #ccc;
}
.booking-form button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 8px;
}
.success { color: #30d158; text-align: center; font-weight: bold;}
.error { color: var(--error); text-align: center; }
@media (max-width: 480px) {
  .booking-container { padding: 1rem 0.5rem; }
}
/* Naptár input/Flatpickr testreszabása */
.flatpickr-input, .booking-form select, .booking-form input[type="time"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #222;
  background: #23272b;
  color: #f2f2f2;
  font-size: 1rem;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: background 0.2s, color 0.2s;
}
body.light-mode .flatpickr-input,
body.light-mode .booking-form select,
body.light-mode .booking-form input[type="time"] {
  background: #fff;
  color: #222;
  border: 1px solid #bbb;
}

/* Naptár widget panel */
.flatpickr-calendar.material_dark {
  background: #242529;
  color: #fff;
}
body.light-mode .flatpickr-calendar.material_blue {
  background: #f1f3fa;
  color: #222;
}
.flatpickr-day.selected, .flatpickr-day.today {
  background: #5677fc;
  color: #fff;
}
.booking-container {
  max-width: 400px;
  margin: 30px auto;
  padding: 1.5rem 1.2rem;
  background: rgba(38, 44, 54, 0.93);
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.135);
}
body.light-mode .booking-container {
  background: #f8f8f8;
}
h2 { text-align: center; }
.booking-form label {
  display: block;
  margin-bottom: 0.67em;
  font-weight: 500;
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form select {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #23272b;
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}
.booking-form input[readonly] {
  cursor: pointer;
}
body.light-mode .booking-form input,
body.light-mode .booking-form select {
  background: #fff;
  color: #23272b;
  border: 1px solid #bbb;
}
.booking-form button[type="submit"] {
  width: 100%;
  padding: 10px;
  background: #5677fc;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 8px;
}
.success { color: #30d158; text-align: center; font-weight: bold;}
.error { color: #ff5252; text-align: center; }
@media (max-width: 480px) {
  .booking-container { padding: 1rem 0.5rem; }
}

