
:root {
  --gm-green: #0f9d58;
  --gm-green-soft: #e5f6eb;
  --gm-yellow-soft: #fff7e0;
  --gm-blue-soft: #eef4ff;
  --gm-border-soft: #e5e7eb;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #f9fafb 0, #f1f5f9 45%, #eef2f7 100%);
  min-height: 100vh;
}

/* NAVBAR */

.navbar {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gm-green-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gm-green);
}

.nav-link[data-section] {
  position: relative;
  font-weight: 500;
  color: #64748b;
}

.nav-link[data-section].active {
  color: var(--gm-green);
}

.nav-link[data-section].active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--gm-green);
}

/* GENERIC CARDS & LAYOUT */

section {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.card {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.card-hover {
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
}

/* STAT CARDS (Übersicht oben) */

.stat-card {
  border-radius: 1.1rem;
  border: none;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-huehner {
  background: var(--gm-yellow-soft);
}

.stat-gaense {
  background: var(--gm-blue-soft);
}

.stat-gesamt {
  background: var(--gm-green-soft);
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6b7280;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

/* BADGES & TAGS */

.badge-pill {
  border-radius: 999px;
  padding-inline: 0.75rem;
}

.badge-soft-success {
  background: #defce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-soft-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-soft-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* FORMS */

.form-control,
.form-select {
  border-radius: 0.8rem;
  border-color: rgba(148, 163, 184, 0.7);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gm-green);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25);
}

/* BUTTONS */

.btn-success {
  background: var(--gm-green);
  border-color: var(--gm-green);
}

.btn-success:hover {
  background: #0c8a4d;
  border-color: #0c8a4d;
}

.btn-outline-success {
  color: var(--gm-green);
  border-color: var(--gm-green-soft);
  background-color: #ffffff;
}

.btn-outline-success:hover {
  background: var(--gm-green-soft);
  border-color: var(--gm-green);
}

/* JOURNAL MODAL EXTRA BLOCKS */

.journal-extra {
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 1rem;
  margin-top: 1rem;
}

#journalBlockMedication {
  background: #f8f2ff;
}

#journalBlockVet {
  background: #eef4ff;
}

/* ADMIN CARDS (Verwaltung) */

.admin-stat-card {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

/* AUTH */

#authContainer .card {
  border-radius: 1.4rem;
}

/* MOBILE TWEAKS */

@media (max-width: 576px) {
  .display-6,
  h2 {
    font-size: 1.6rem;
  }

  .navbar-brand span:last-child {
    font-size: 0.95rem;
  }
}


/* DARK MODE =======================================================*/

body[data-theme="dark"] {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
}

body[data-theme="dark"] .navbar {
  background-color: #020617 !important;
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

body[data-theme="dark"] .navbar .navbar-brand span:last-child {
  color: #bbf7d0;
}

body[data-theme="dark"] .navbar .nav-link {
  color: #cbd5f5;
}

body[data-theme="dark"] .navbar .nav-link[data-section].active {
  color: #4ade80;
}

body[data-theme="dark"] .card {
  background-color: #020617;
  border-color: rgba(148, 163, 184, 0.5);
}

body[data-theme="dark"] .card-header {
  background: linear-gradient(180deg, #020617, #020617);
  border-bottom-color: rgba(148, 163, 184, 0.5);
}

body[data-theme="dark"] .stat-card.stat-huehner {
  background: #422006;
}

body[data-theme="dark"] .stat-card.stat-gaense {
  background: #0f172a;
}

body[data-theme="dark"] .stat-card.stat-gesamt {
  background: #064e3b;
}

body[data-theme="dark"] .form-control,
body[data-theme="dark"] .form-select {
  background-color: #020617;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.8);
}

body[data-theme="dark"] .form-control::placeholder,
body[data-theme="dark"] .form-select::placeholder {
  color: #64748b;
}

body[data-theme="dark"] .modal-content {
  background-color: #020617;
  color: #e5e7eb;
}

body[data-theme="dark"] .table {
  color: #e5e7eb;
}

body[data-theme="dark"] .bg-light {
  background-color: #020617 !important;
}

body[data-theme="dark"] .text-muted {
  color: #9ca3af !important;
}
