body {
  background:
    radial-gradient(circle at 15% 20%, rgba(111, 99, 71, 0.05), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(143, 133, 105, 0.06), transparent 42%),
    #faf8f5;
  color: #2c2a25;
  font-family: "DM Sans", "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: "DM Serif Display", "Georgia", serif;
}

/* ── Panels ──────────────────────────────────────────────────── */

.panel {
  background: #fffdf9;
  border: 1px solid #e8e2d8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(44, 42, 37, 0.06);
}

.panel-soft {
  background: #f5f2ec;
  border: 1px solid #e8e2d8;
  border-radius: 14px;
}

/* ── Badges & Pills ──────────────────────────────────────────── */

.pill {
  border-radius: 999px;
  padding: 8px 14px;
}

.muted {
  color: #8a8477;
}

.icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #6f6347, #8f8569);
  color: #faf8f5;
  flex-shrink: 0;
}

.badge-muted {
  background: #f5f2ec;
  border: 1px solid #e8e2d8;
  color: #8a8477;
}

.glass {
  background: rgba(250, 248, 245, 0.88);
  border: 1px solid rgba(232, 226, 216, 0.9);
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn-primary {
  background: #4a5a3a;
  color: #faf8f5;
  border: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #3d4c30;
}

.btn-secondary {
  background: #6f6347;
  color: #faf8f5;
  border: none;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: #5d5339;
}

/* ── Stat cards ──────────────────────────────────────────────── */

.stat-card {
  border: 1px solid #e8e2d8;
  background: #fffdf9;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(44, 42, 37, 0.05);
}

/* ── Charts ──────────────────────────────────────────────────── */

.chart-bar {
  background: linear-gradient(180deg, rgba(74, 90, 58, 0.85) 0%, rgba(111, 99, 71, 0.7) 100%);
  box-shadow: inset 0 -4px 12px rgba(74, 90, 58, 0.2);
}

.chart-line {
  stroke: #4a5a3a;
  stroke-width: 2.5;
}

.chart-dot {
  fill: #fffdf9;
  stroke: #6f6347;
  stroke-width: 2;
}

/* ── Tables ──────────────────────────────────────────────────── */

.table th {
  padding: 14px 16px;
  font-size: 0.8rem;
}

.table td {
  padding: 14px 16px;
  font-size: 0.95rem;
}

/* ── Forms ────────────────────────────────────────────────────── */

.input:focus, .textarea:focus, .select:focus {
  border-color: #4a5a3a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 90, 58, 0.1);
}

/* ── Modal ────────────────────────────────────────────────────── */

.modal-box {
  border-radius: 16px;
}

.modal-backdrop {
  background: rgba(44, 42, 37, 0.3);
  backdrop-filter: blur(4px);
}

/* ── Navigation ──────────────────────────────────────────────── */

aside {
  background: #fffdf9;
}

/* ── Utility ─────────────────────────────────────────────────── */

.text-bleyckhof { color: #4a5a3a; }
.text-bleyckhof-warm { color: #6f6347; }
.bg-bleyckhof { background-color: #4a5a3a; }
.bg-bleyckhof-warm { background-color: #6f6347; }

/* ── Flatpickr styling ──────────────────────────────────────── */

.flatpickr-input.form-control {
  background: #faf8f5;
  border: 1px solid #e8e2d8;
  border-radius: var(--rounded-btn, 0.5rem);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  width: 100%;
}
.flatpickr-input.form-control:focus {
  border-color: #4a5a3a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 90, 58, 0.1);
}

/* ── Mobile responsiveness ──────────────────────────────────── */

/* Touch-friendly: minimum tap targets */
@media (max-width: 767px) {
  /* Buttons & interactive elements: min 44px */
  .btn, button, a.btn {
    min-height: 44px;
  }
  .btn-xs {
    min-height: 36px;
    min-width: 36px;
  }
  .btn-sm {
    min-height: 40px;
  }

  /* Form inputs: comfortable height */
  .input, .select, .textarea, .file-input {
    min-height: 44px;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* Modal: full-width on mobile */
  .modal-box {
    width: 95vw;
    max-width: 95vw;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* KPI stat cards: smaller text */
  .stat-card .text-4xl {
    font-size: 1.75rem;
  }

  /* Tables: better mobile scrolling */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  /* Flatpickr calendar: ensure it fits on screen */
  .flatpickr-calendar {
    max-width: 95vw;
  }

  /* Badge/pill spacing for touch */
  .badge {
    padding: 4px 10px;
  }

}
