.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mx-2 { margin-inline: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.78rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.55rem; }
.text-3xl { font-size: 2rem; }
.font-bold { font-weight: 800; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-75 { opacity: 0.75; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius); }
.max-w-xs { max-width: 20rem; }
.overflow-y-auto { overflow-y: auto; }
.no-underline { text-decoration: none; }
.text-red-500, .text-red-400 { color: var(--rose); }
.text-yellow-400 { color: var(--gold-strong); }
.text-white { color: #fffaf0; }
.text-black { color: var(--ink); }
.bg-gray-200 { background: var(--surface-strong); }
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-1\/3 { width: 33.333%; }

body[data-theme="dark"] {
  --bg: #F5F3EE;
  --surface: #fffdf8;
  --surface-strong: #EEEAE1;
  --ink: #1C2B24;
  --muted: #746f63;
  --line: #E4E1D8;
  background:
    linear-gradient(135deg, rgba(245, 243, 238, 0.98), rgba(245, 243, 238, 0.98));
  background-color: var(--bg);
  background-size: auto;
}

body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .content-body,
body[data-theme="dark"] .panel,
body[data-theme="dark"] .card,
body[data-theme="dark"] .stat,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] .chat-box,
body[data-theme="dark"] .list-item-card,
body[data-theme="dark"] #chat-box,
body[data-theme="dark"] .modal,
body[data-theme="dark"] .alert-content {
  background: rgba(255, 251, 243, 0.92);
}

body[data-theme="dark"] .field,
body[data-theme="dark"] .input-group input,
body[data-theme="dark"] .input-group textarea,
body[data-theme="dark"] .input-group select,
body[data-theme="dark"] #chat-input {
  background: rgba(255, 251, 243, 0.78);
  color: var(--ink);
}

body[data-theme="dark"] .sidebar {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.13), transparent 15rem),
    linear-gradient(180deg, #174f3e, #0c382c);
}

body[data-theme="dark"] .topbar {
  background: rgba(245, 239, 227, 0.74);
}

.notification-toggle {
  min-width: 92px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--rose);
  background: rgba(184, 98, 67, 0.12);
  font-weight: 800;
}

.notification-toggle[aria-pressed="true"] {
  color: var(--date);
  background: rgba(28, 107, 82, 0.14);
}

.notification-toggle svg {
  width: 20px;
  height: 20px;
}

.notification-toggle span {
  color: currentColor;
  font-size: 0.9rem;
}
