@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg-base: #dce3ef;
  --bg-fade: #ecf1f8;
  --surface: #f5f8fd;
  --surface-strong: #ffffff;
  --surface-soft: #edf2f9;
  --ink: #1a2c49;
  --muted: #5f7396;
  --link: #2b4f88;
  --panel-dark: #11233f;
  --panel-mid: #21385f;
  --brand: #f1456d;
  --brand-strong: #d9355e;
  --brand-soft: #ffe5ec;
  --danger: #be2f4f;
  --ok: #117d59;
  --border: #c3cee0;
  --shadow: 0 16px 40px rgba(22, 39, 66, 0.18);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.58) 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 88% 16%, rgba(92, 123, 170, 0.22) 0, rgba(92, 123, 170, 0) 34%),
    linear-gradient(165deg, var(--bg-fade), var(--bg-base));
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  animation: rise 0.35s ease;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  border-radius: 24px;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(106deg, var(--panel-mid), var(--panel-dark));
  border: 1px solid rgba(194, 209, 233, 0.2);
  box-shadow: var(--shadow);
}

.brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  color: #eef3fd;
}

.tagline {
  color: #bccae3;
  font-size: 0.97rem;
}

.nav-links {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a,
.nav-links button {
  border-radius: 999px;
  border: 1px solid rgba(190, 205, 229, 0.32);
  background: rgba(17, 35, 63, 0.4);
  color: #ebf2ff;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.02em;
  min-height: 42px;
}

.nav-links a:hover,
.nav-links button:hover {
  text-decoration: none;
  background: rgba(241, 69, 109, 0.2);
  border-color: rgba(241, 69, 109, 0.6);
}

.hero {
  background:
    radial-gradient(circle at 82% 0%, rgba(95, 121, 166, 0.46) 0, rgba(95, 121, 166, 0) 44%),
    linear-gradient(108deg, var(--panel-dark), #1a3155 62%, #1d3963);
  color: #f3f7ff;
  border-radius: 22px;
  border: 1px solid rgba(176, 196, 226, 0.26);
  padding: clamp(1.25rem, 2.6vw, 2.05rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: 0.015em;
  line-height: 0.95;
}

.hero p {
  margin: 0;
  max-width: 68ch;
  color: #d0dbef;
}

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

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

.card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(24, 41, 69, 0.08);
  padding: 1rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.55rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  line-height: 0.95;
  color: #182f4e;
}

.card p {
  margin-top: 0;
  color: var(--muted);
}

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

button,
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.68rem 0.95rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  color: #fff;
  border: 1px solid #e83864;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 20px rgba(235, 60, 103, 0.25);
}

.btn-primary:hover {
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(235, 60, 103, 0.34);
}

.btn-secondary {
  color: #dbe7ff;
  border: 1px solid #2f4b77;
  background: linear-gradient(135deg, #1c3358, #162a48);
}

.btn-danger {
  color: #fff;
  border: 1px solid #be2f4f;
  background: linear-gradient(135deg, #d53f62, #b42f4d);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge.submitted {
  background: #e8f0ff;
  color: #284d84;
  border-color: #bfd0ec;
}

.badge.approved {
  background: #e3f8ef;
  color: #0b6548;
  border-color: #b8e8d2;
}

.badge.declined {
  background: #ffe8ec;
  color: #9f2d4b;
  border-color: #f2b8c4;
}

.badge.scheduled {
  background: #f6eeff;
  color: #6b45a8;
  border-color: #dac7f6;
}

.form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 700;
  color: #233a5f;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #b9c7dd;
  padding: 0.64rem 0.74rem;
  font-size: 0.94rem;
  font-family: inherit;
  background: #f8fbff;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7c96c3;
  box-shadow: 0 0 0 3px rgba(124, 150, 195, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

small,
.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.notice {
  border: 1px solid #e1b8c4;
  background: linear-gradient(135deg, #fff6f8, #fff1f5);
  color: #8f2f4a;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
}

.error,
.success {
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
}

.error {
  border: 1px solid #f3b8c5;
  background: #fff0f4;
  color: #972845;
}

.success {
  border: 1px solid #9ddfc4;
  background: #edfcf4;
  color: #0d6c4a;
}

.hidden {
  display: none !important;
}

.spacer {
  margin-top: 1.2rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.45rem;
  vertical-align: top;
}

th {
  background: #e7eef9;
  color: #2a4674;
  font-weight: 700;
}

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

@media (min-width: 880px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    border-radius: 18px;
  }

  .brand {
    font-size: clamp(1.25rem, 7vw, 2rem);
  }

  .tagline {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1180px, calc(100% - 1rem));
    padding-top: 1rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.95rem;
  }

  .actions {
    width: 100%;
  }

  button,
  .btn {
    width: 100%;
    text-align: center;
  }
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab-btn {
  border: 1px solid #9fb2d1;
  background: #eef3fb;
  color: #2a446f;
  min-height: 42px;
  cursor: pointer;
}

.tab-btn.active {
  border-color: #df3f65;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 8px 16px rgba(235, 60, 103, 0.26);
}

.admin-tab-panel {
  animation: rise 0.24s ease;
}

.planner-shell {
  background: linear-gradient(165deg, #4e5f7b, #4a5b76 42%, #465670);
  border: 1px solid rgba(184, 199, 223, 0.4);
  border-radius: 24px;
  padding: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 34px rgba(27, 39, 62, 0.25);
}

.planner-eyebrow {
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  color: #c4d2e8;
}

.planner-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  color: #f3f7fe;
}

.planner-subtitle {
  margin: 0.4rem 0 0.8rem;
  color: #d3deef;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.calendar-month-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #ecf2fe;
  text-align: center;
  border: 1px solid rgba(175, 193, 220, 0.35);
  background: rgba(44, 65, 96, 0.86);
  border-radius: 999px;
  padding: 0.36rem 1.1rem;
  letter-spacing: 0.22em;
}

.planner-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.planner-meta .muted {
  color: #dbe4f4;
}

.planner-pill {
  border-radius: 999px;
  border: 1px solid rgba(184, 201, 224, 0.55);
  background: rgba(237, 243, 252, 0.92);
  color: #2c446d;
  padding: 0.35rem 0.85rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

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

.calendar-head {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: #ced9ea;
  font-size: 0.86rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
}

.calendar-cell {
  min-height: 126px;
  border-radius: 30px;
  border: 1px solid #cfd5de;
  background: linear-gradient(180deg, #d3d5da, #cbced5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem;
  text-align: left;
}

.calendar-cell.outside-month {
  background: linear-gradient(180deg, #bdc2cb, #b8bec7);
  color: #8ea0bb;
  border-color: #acb5c2;
}

.calendar-cell.has-approved {
  border-color: #e5e8ee;
  background: linear-gradient(180deg, #e3e5e9, #dfe2e8);
}

.calendar-cell.today {
  box-shadow: inset 0 0 0 1px rgba(241, 69, 109, 0.42);
}

.calendar-cell.selected {
  border-color: #7284a0;
  box-shadow: inset 0 0 0 2px rgba(92, 111, 140, 0.4);
}

.calendar-date {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #19233b;
  font-size: 2.25rem;
  line-height: 0.85;
}

.calendar-cell.outside-month .calendar-date {
  color: #94a4bc;
}

.calendar-count {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.15rem 0.48rem;
  background: #ffe4eb;
  color: #982f4f;
  border: 1px solid #f0b7c6;
  font-weight: 700;
}

.calendar-item,
.calendar-more {
  font-size: 0.78rem;
  color: #32496f;
  line-height: 1.25;
}

.calendar-day-summary {
  border: 1px solid rgba(177, 194, 220, 0.62);
  border-radius: 14px;
  background: rgba(238, 243, 251, 0.9);
  padding: 0.75rem;
}

.calendar-day-summary h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.calendar-booking-item {
  border: 1px solid #c3d1e7;
  border-radius: 10px;
  background: #f7fafe;
  padding: 0.6rem 0.7rem;
}

@media (max-width: 880px) {
  .planner-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .calendar-grid {
    gap: 0.4rem;
  }

  .calendar-cell {
    min-height: 100px;
    border-radius: 20px;
    padding: 0.45rem;
  }

  .calendar-date {
    font-size: 1.75rem;
  }
}
