    /* Globale Basisstile
      - Definiert Farb-, Schatten- und Schriftvariablen für die gesamte App
      - Wird von allen HTML-Seiten und den beiden responsiven Stylesheets genutzt
      - Steuert Grundlayout, Buttons, Popups und Formular-Komponenten
      - Arbeitet mit mobile.css und desktop.css zusammen
      - Beeinflusst alle Seiten über gemeinsame Variablen und Basisklassen */

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-top: #edf8f1;
  --page-bottom: #fbfcfd;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(148, 163, 184, 0.18);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-soft: #475569;
  --accent: #16a34a;
  --accent-dark: #109530;
  --surface: #f1f5f9;
  --surface-strong: #e8edf3;
  --input-border: #d8e0ea;
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.5;
  width: 100%;
  min-height: 100vh;
}

body:not(.form-page) {
  padding: 20px;
  max-width: 600px;
  background: linear-gradient(to bottom, #ffffff 0%, #22c55e 100%);
  background-repeat: no-repeat;
}

body:not(.form-page) h1 {
  margin-bottom: 1em;
}

body:not(.form-page) form > div {
  margin-bottom: 1em;
}

body:not(.form-page) label {
  display: inline-block;
  width: 80px;
}

body:not(.form-page) input[type="email"],
body:not(.form-page) input[type="password"],
body:not(.form-page) input[type="text"] {
  width: 200px;
  padding: 4px;
}

body:not(.form-page) p {
  margin-top: 1em;
}

/* Action Button */
button.header_action-btn {
  height: 25px;
  width: 25px;
  border-radius: 100%;
  background-color: #109530;
  color: white;
  border: none;
  weight: bold;
  text-decoration: none;
}

button.header_action-btn a,
button.header_action-btn a:visited {
  color: #ffffff;
  weight: bold;
  text-decoration: none;
}

button.header_action-btn:visited {
  color: white;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
}

.popup {
    width: min(100%, 420px);
    border-radius: 20px;
    background: white;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.popup p {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.5;
    color: #0f172a;
}

.popup-subtitle {
  margin-top: -16px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #64748b;
}

.popup-input {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 14px;
  font: inherit;
  color: #0f172a;
  background: #ffffff;
}

.popup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.popup button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(180deg, #19b540 0%, var(--accent-dark) 100%);
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.24);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

  .popup-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .popup button.popup-btn-neutral {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
  }

  .popup button.popup-btn-danger {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
  }


 /* Dashboard - Usage Chart  */
  .toy_usage-chart {
    margin: 24px 0 20px;
    padding: 20px;
    border-radius: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
  }

  .toy_usage-chart h3 {
    margin: 0;
  }

  .chart_header {
    margin: 6px 0 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
  }

  .chart_list {
    display: grid;
    gap: 14px;
  }

  .chart_entry {
    display: grid;
    gap: 8px;
  }

  .chart_entry-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.98rem;
  }

  .chart_toyName {
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chart_usage {
    flex: 0 0 auto;
    color: var(--text-soft);
    font-weight: 600;
  }

  .chart_bar {
    width: 100%;
    height: 15px;
    border-radius: 999px;
    background: var(--surface-strong);
    overflow: hidden;
  }

  .chart_bar_fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399 0%, var(--accent) 100%);
    transition: width 220ms ease;
  }

  .toy_usage-chart .toy_emptyState {
    margin: 0 0 12px;
  }



  .hidden {
    display: none;
}

