@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --accent: #e10600;
  --accent-2: #111111;
  --green: #1a9b62;
  --red: #d72638;
  --yellow: #f0b429;
  --line: rgba(17, 17, 17, 0.1);
  --shadow: 0 14px 40px rgba(17, 17, 17, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --glow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225, 6, 0, 0.06), transparent 55%),
    radial-gradient(circle at 30% 10%, rgba(17, 17, 17, 0.04), transparent 55%),
    linear-gradient(180deg, #f7f5f2 0%, #f2efea 100%);
  color: var(--ink);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #111, #ffffff);
  box-shadow: inset 0 0 0 2px #fff;
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-lines {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.icon-button:hover {
  border-color: rgba(17, 17, 17, 0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}

.container {
  width: min(1100px, 92vw);
  margin: 32px auto 60px;
  flex: 1;
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
}

.subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab.active {
  border-color: transparent;
  background: var(--accent-2);
  color: #fff;
  box-shadow: var(--glow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filters .inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.input,
select,
textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  min-width: 180px;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(17, 17, 17, 0.2);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.table {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 0.9fr 2.3fr 1.2fr 1.2fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 10px;
}

.table-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.table-row {
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: none;
}

.request-id {
  font-weight: 600;
  color: var(--accent-2);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-open {
  background: rgba(240, 180, 41, 0.18);
  color: #8a5c00;
}

.status-accepted {
  background: rgba(26, 155, 98, 0.16);
  color: #0e6a41;
}

.status-declined {
  background: rgba(215, 38, 56, 0.14);
  color: #8c1e2b;
}

.status-booked {
  background: rgba(17, 17, 17, 0.12);
  color: #111;
}

.status-done {
  background: rgba(26, 155, 98, 0.12);
  color: #0e6a41;
}

.status-canceled {
  background: rgba(215, 38, 56, 0.12);
  color: #8c1e2b;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.action-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon svg {
  width: 18px;
  height: 18px;
}

.action-accept {
  background: rgba(26, 155, 98, 0.15);
  color: var(--green);
}

.action-decline {
  background: rgba(215, 38, 56, 0.15);
  color: var(--red);
}

.action-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.action-icon:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.card h3 {
  margin-bottom: 12px;
}

.key-value {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px 18px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.key {
  color: var(--ink-soft);
}

.value {
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(8px);
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 10px 16px;
}

.btn-primary {
  background: var(--accent-2);
  color: #fff;
}

.btn-accept {
  background: var(--green);
  color: #fff;
}

.btn-decline {
  background: var(--red);
  color: #fff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notice {
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.2);
  color: #8a0d0a;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.error {
  color: #8a0d0a;
  margin-top: 12px;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}

.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.calendar-day {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 10px;
  min-height: 110px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  position: relative;
}

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

.calendar-event {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.08);
  font-size: 0.75rem;
  cursor: pointer;
}

.calendar-event.booked {
  background: rgba(17, 17, 17, 0.14);
  font-weight: 600;
}

.calendar-event.accepted {
  background: rgba(26, 155, 98, 0.16);
  color: #0e6a41;
}

.list-view {
  display: none;
  margin-top: 18px;
}

.list-view.active {
  display: grid;
  gap: 12px;
}

.progress {
  background: rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow);
}

.summary-card .label {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 6px;
}

.admin-table .table-header,
.admin-table .table-row {
  grid-template-columns: 0.9fr 1.6fr 0.9fr 0.9fr 0.8fr 1.4fr;
}

.admin-table.admin-djs .table-header,
.admin-table.admin-djs .table-row {
  grid-template-columns: 1.2fr 1.4fr 0.8fr 0.8fr 1.2fr 0.9fr;
}

.table-row .inline-select,
.table-row .inline-input {
  width: 100%;
  min-width: unset;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(17, 17, 17, 0.1);
}

.step:last-child {
  border-bottom: none;
}

.step input[type="checkbox"] {
  margin-top: 4px;
  accent-color: var(--accent);
}

.profile-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 12px;
}

.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.locked {
  opacity: 0.5;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

@media (max-width: 860px) {
  .topbar .right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .top-nav {
    width: 100%;
    justify-content: flex-end;
  }

  .table-header {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 17, 17, 0.06);
    margin-bottom: 12px;
  }

  .table-row:last-child {
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  }

  .table {
    padding: 14px;
  }

  .action-buttons {
    justify-content: flex-start;
  }

  .key-value {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .topbar {
    padding: 16px;
  }

  .container {
    margin-top: 20px;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .sticky-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
