/* SanaartOS — Event Command Center styles */
:root {
  --ink: #1a1a2e;
  --cream: #faf8f4;
  --ochre: #c4783e;
  --ochre-light: rgba(232,169,104,0.25);
  --plum: #6b2d5b;
  --sage: #7a9e7e;
  --warm-gray: #b8b0a8;
  --border: rgba(26,26,46,0.12);
  --shadow: 0 2px 12px rgba(26,26,46,0.08);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* ── Topnav ── */
.topnav {
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topnav .brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
}
.topnav nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0 1rem;
  transition: color 0.15s;
}
.topnav nav a:hover, .topnav nav a.active { color: #fff; }

/* ── Layout ── */
.app-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 56px);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--warm-gray);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar-item:hover { color: var(--ink); background: rgba(196,120,62,0.06); }
.sidebar-item.active {
  color: var(--ochre);
  border-left-color: var(--ochre);
  background: var(--ochre-light);
}
.sidebar-item .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.main-content {
  padding: 2rem;
  overflow-y: auto;
}

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--ochre);
  color: #fff;
}
.btn-primary:hover { background: #b06c35; }
.btn-secondary {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--ochre); }
.btn-danger {
  background: #e55;
  color: #fff;
}
.btn-danger:hover { background: #c44; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1rem; }

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(196,120,62,0.04); }
.data-table .actions { white-space: nowrap; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form-control {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px var(--ochre-light);
}
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(26,26,46,0.2);
}
.modal h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-painting { background: #fde8d8; color: #a85d1e; }
.badge-music { background: #e8f0fe; color: #1a5fb4; }
.badge-dance { background: #f0e8fe; color: #6b2d5b; }
.badge-literature { background: #e8fef0; color: #2d7a4e; }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--warm-gray);
}
.empty-state p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ── Event calendar grid ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.15s;
  border-left: 4px solid var(--ochre);
}
.event-card:hover { box-shadow: 0 4px 20px rgba(26,26,46,0.12); transform: translateY(-2px); }
.event-card .event-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}
.event-card .event-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.event-card .event-venue {
  font-size: 0.8rem;
  color: var(--warm-gray);
}

/* ── Toast / notifications ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 300;
}
.toast {
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(26,26,46,0.3);
  animation: slideIn 0.2s ease;
}
.toast.success { background: var(--sage); }
.toast.error { background: #e55; }
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Multi-select for artist IDs in form ── */
.artist-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-height: 42px;
}
.artist-chip {
  background: var(--ochre-light);
  color: var(--ochre);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.artist-chip:hover { background: var(--ochre); color: #fff; }