:root {
  --bg: #0f172a;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(15, 23, 42, 0.9);
  --stroke: rgba(148, 163, 184, 0.2);
  --text: #e2e8f0;
  --muted: rgba(226, 232, 240, 0.7);
  --accent: #38bdf8;
  --accent-2: #6366f1;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(/assets/images/hotel.jpg);
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.6);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.65));
  z-index: -1;
}

.page {
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.event_heading {
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 2.2fr) minmax(240px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.controls .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
}

input {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.95rem;
}

.button_container {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 0;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.25);
}

button:hover {
  transform: translateY(-1px);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  box-shadow: none;
}

.output {
  margin-top: 0.8rem;
  color: #fbbf24;
  font-size: 0.9rem;
}

.calendar-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.helper {
  color: var(--muted);
  font-size: 0.85rem;
}

#events_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.6rem;
}

th,
td {
  padding: 1rem;
  background-color: rgba(15, 23, 42, 0.65);
  border-radius: 16px;
  color: var(--text);
  border: 1px solid var(--stroke);
  vertical-align: top;
}

.day-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.day-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.cell-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 999px;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.badge.hidden {
  display: none;
}

.panel {
  position: sticky;
  top: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.panel-date {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.panel-input {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.panel-input input {
  flex: 1;
}

.close {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  box-shadow: none;
}

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.event-item button {
  padding: 0.25rem 0.6rem;
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  box-shadow: none;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel {
    position: static;
  }
}
