@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #0f0f0f;
  --surface: #151515;
  --surface-2: #1d1d1d;
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --accent: #c9a84d;
  --danger: #df5c5c;
  --border: #2a2a2a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: radial-gradient(circle at 20% 20%, #1d1b16, #0f0f0f 60%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 1.5rem 0 4.5rem;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: rgba(15, 15, 15, 0.95);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1.2rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.sidebar-header {
  margin-bottom: 2rem;
}

.app-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(15, 15, 15, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex-direction: column;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.content {
  padding: 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(201, 168, 77, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table th,
.table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 500;
}

form {
  display: grid;
  gap: 0.8rem;
}

input,
select,
textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(201, 168, 77, 0.6);
}

button,
.button {
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(201, 168, 77, 0.3);
}

.button.outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

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

.button.danger {
  background: var(--danger);
  color: #1a1a1a;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.muted {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 0.3rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a.active {
  color: var(--accent);
  background: rgba(201, 168, 77, 0.14);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 900px) {
  body {
    background: radial-gradient(circle at top left, #1a1916, #0f0f0f 55%);
  }
}

@media (max-width: 980px) {
  .sidebar {
    transform: translateX(-100%);
    width: min(80vw, 300px);
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .content {
    padding: 1.5rem;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 15;
}

body.menu-open .overlay {
  opacity: 1;
  pointer-events: all;
}

.inline-form {
  display: grid;
  gap: 0.5rem;
}

.table input,
.table textarea,
.table select {
  width: 100%;
  font-size: 0.85rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.package-card {
  display: grid;
  gap: 0.8rem;
}

.package-photo {
  width: 100%;
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(201, 168, 77, 0.16);
}

.list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.calendar {
  display: grid;
  gap: 0.6rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.calendar-weekday {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.2rem 0.4rem;
}

.calendar-cell {
  min-height: 110px;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.4rem;
}

.calendar-cell.muted {
  opacity: 0.45;
}

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

.calendar-event {
  font-size: 0.78rem;
  line-height: 1.2;
  padding: 0.2rem 0.4rem;
  border-radius: 8px;
  background: rgba(201, 168, 77, 0.16);
  color: var(--text);
}

.tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--surface-2);
}

.tabs button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.tabs button.active {
  color: #1a1a1a;
  background: var(--accent);
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}

details + details {
  margin-top: 0.6rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
