/* ==========================================================================
   css/app.css - pria Modern Mobile-First Design System
   Theming, CSS Grid/Flex, Animations, Dark Mode & Touch-Optimized Controls
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

:root {
  --bg-primary: #121217;
  --bg-surface: #1b1b22;
  --bg-surface-elevated: #24242e;
  --bg-surface-card: #202029;
  --border-subtle: #2d2d3a;
  --border-focus: #e91e63;

  --text-primary: #f4f4f7;
  --text-secondary: #9e9ea7;
  --text-muted: #6b6b75;

  /* Phasen-Akzente */
  --color-menstruation: #e91e63;
  --color-follicular: #ab47bc;
  --color-ovulation: #ffb300;
  --color-luteal: #5c6bc0;
  --color-success: #26a69a;
  --color-warning: #ffa726;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 24px rgba(233, 30, 99, 0.25);
  color-scheme: dark;
}

/* --- LIGHT MODE THEME --- */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f6f6fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ededf5;
  --bg-surface-card: #f8f9fd;
  --border-subtle: #dedee9;
  --border-focus: #e91e63;

  --text-primary: #181824;
  --text-secondary: #58586a;
  --text-muted: #88889a;

  /* Phasen-Farben angepasst für klaren Kontrast auf hellem Hintergrund */
  --color-menstruation: #d81b60;
  --color-follicular: #8e24aa;
  --color-ovulation: #e65100;
  --color-luteal: #3949ab;
  --color-success: #00897b;
  --color-warning: #ef6c00;

  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(216, 27, 96, 0.12);
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme="light"] .cycle-hero-card::before {
  background: radial-gradient(circle, rgba(216, 27, 96, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .cal-day.today {
  border: 2px solid var(--text-primary) !important;
}

[data-theme="light"] .cal-day.phase-menstruation {
  background: rgba(216, 27, 96, 0.14);
  color: #ad1457;
}

[data-theme="light"] .cal-day.phase-follicular {
  background: rgba(142, 36, 170, 0.12);
  color: #6a1b9a;
}

[data-theme="light"] .cal-day.phase-fertile {
  background: rgba(230, 81, 0, 0.12);
  color: #bf360c;
}

[data-theme="light"] .cal-day.phase-ovulation {
  background: rgba(230, 81, 0, 0.25);
  color: #b73e00;
  border: 1.5px solid var(--color-ovulation);
}

[data-theme="light"] .cal-day.phase-luteal {
  background: rgba(57, 73, 171, 0.12);
  color: #283593;
}

[data-theme="light"] .cal-day.phase-prediction {
  background: repeating-linear-gradient(
    45deg,
    rgba(216, 27, 96, 0.12),
    rgba(216, 27, 96, 0.12) 6px,
    rgba(216, 27, 96, 0.04) 6px,
    rgba(216, 27, 96, 0.04) 12px
  );
  border: 1px dashed rgba(216, 27, 96, 0.55);
  color: #ad1457;
}

[data-theme="light"] .temp-display {
  color: var(--text-primary);
}

[data-theme="light"] .chip.active {
  background: rgba(216, 27, 96, 0.15);
  color: #ad1457;
}

[data-theme="light"] .modal-overlay {
  background: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .toast {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .settings-row {
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .modal-footer-sticky {
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.10);
  background: var(--bg-surface);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

#app-container {
  width: 100%;
  max-width: 480px;
  padding: 16px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- HEADER & STATUS BAR --- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.brand h1 {
  font-family: 'Dancing Script', 'Caveat', 'Brush Script MT', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  background: linear-gradient(135deg, #ff4081, #ba68c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin: 0;
  padding-bottom: 2px;
}

.status-badges {
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge.online {
  color: var(--color-success);
  border-color: rgba(38, 166, 154, 0.4);
}

.badge.offline {
  color: var(--color-warning);
  border-color: rgba(255, 167, 38, 0.4);
}

.badge.secure {
  color: #64b5f6;
  border-color: rgba(100, 181, 246, 0.3);
}

/* --- HERO CYCLE DIAL CARD --- */
.cycle-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cycle-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(233, 30, 99, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cycle-dial {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 16px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cycle-svg-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg-surface-elevated);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--color-menstruation);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.8s ease-out, stroke 0.4s ease;
}

.dial-center {
  z-index: 2;
}

.dial-day-number {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.dial-day-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cycle-phase-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(233, 30, 99, 0.15);
  color: var(--color-menstruation);
  margin-bottom: 12px;
}

.cycle-prediction-box {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.prediction-headline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.prediction-dates {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.confidence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.confidence-bar-wrapper {
  flex: 1;
  margin: 0 10px;
  height: 6px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.confidence-bar-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #ff4081, #26a69a);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* --- CALENDAR & PHASE VISUALIZATION --- */
.calendar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: bold;
  transition: var(--transition-smooth);
}

.cal-nav-btn:active {
  background: var(--border-subtle);
}

.cal-today-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.cal-today-btn:active {
  background: var(--border-subtle);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  background: var(--bg-surface-card);
  color: var(--text-primary);
}

.cal-day.empty {
  background: transparent;
  cursor: default;
  border: none;
}

.cal-day:hover:not(.empty) {
  border-color: var(--border-focus);
}

.cal-day.today {
  border: 2px solid #fff !important;
  font-weight: 800;
}

/* Phasen Färbungen */
.cal-day.phase-menstruation {
  background: rgba(233, 30, 99, 0.32);
  color: #ff80ab;
}

.cal-day.phase-follicular {
  background: rgba(171, 71, 188, 0.16);
  color: #e1bee7;
}

.cal-day.phase-fertile {
  background: rgba(255, 179, 0, 0.22);
  color: #ffe082;
}

.cal-day.phase-ovulation {
  background: rgba(255, 179, 0, 0.45);
  color: #fff;
  border: 1px solid var(--color-ovulation);
}

.cal-day.phase-luteal {
  background: rgba(92, 107, 192, 0.20);
  color: #c5cae9;
}

.cal-day.phase-prediction {
  background: repeating-linear-gradient(
    45deg,
    rgba(233, 30, 99, 0.18),
    rgba(233, 30, 99, 0.18) 6px,
    rgba(233, 30, 99, 0.06) 6px,
    rgba(233, 30, 99, 0.06) 12px
  );
  border: 1px dashed rgba(233, 30, 99, 0.65);
  color: #ff80ab;
}

/* Log Indicator Dot */
.cal-day .log-dot {
  position: absolute;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background-color: var(--color-success);
}

/* Legende */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.legend-dot.phase-menstruation { background: #e91e63; }
.legend-dot.phase-follicular { background: #ab47bc; }
.legend-dot.phase-fertile { background: #ffb300; }
.legend-dot.phase-luteal { background: #5c6bc0; }
.legend-dot.phase-prediction {
  background: #e91e63;
  border: 1px dashed #fff;
}

/* --- ACTION BUTTONS & GRID --- */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
}

.action-card:active {
  transform: scale(0.98);
}

.action-card.highlight {
  border-color: rgba(233, 30, 99, 0.5);
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.08), var(--bg-surface));
  box-shadow: var(--shadow-glow);
}

.action-icon {
  font-size: 1.5rem;
}

.action-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.action-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-full {
  width: 100%;
  grid-column: span 2;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ab47bc, #7b1fa2);
  color: #fff;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(171, 71, 188, 0.35);
  transition: var(--transition-smooth);
}

.btn-full:active {
  transform: scale(0.98);
}

/* --- RECENT LOGS / TIMELINE --- */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
}

.history-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-weight: 600;
  color: var(--text-primary);
}

.history-badges {
  display: flex;
  gap: 6px;
}

.history-item-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.history-item-content:hover {
  opacity: 0.85;
}

.btn-delete-log-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-delete-log-item:hover {
  background: rgba(233, 30, 99, 0.15);
  color: var(--color-menstruation);
  border-color: rgba(233, 30, 99, 0.35);
  transform: scale(1.05);
}

/* --- MODALS (DARK FULLSCREEN / DRAWER) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px 36px 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: var(--bg-surface-elevated);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  cursor: pointer;
}

/* --- QUICK BBT TEMPERATURE DIALOG --- */
.temp-picker-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}

.temp-display {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.temp-unit {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.temp-steppers {
  display: flex;
  gap: 12px;
}

.btn-step {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-step:active {
  background: var(--border-subtle);
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chip.active {
  background: rgba(233, 30, 99, 0.2);
  border-color: var(--color-menstruation);
  color: #fff;
  font-weight: 600;
}

.input-text {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.input-text:focus {
  border-color: var(--border-focus);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--color-menstruation);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: var(--bg-surface-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SETTINGS MODAL (CLEAN CARDS & STICKY BOTTOM ACTIONS) --- */
.modal-content-settings {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}

.modal-content-settings .modal-header {
  padding: 18px 20px 14px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.settings-scroll-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.settings-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-card-danger {
  border-color: rgba(233, 30, 99, 0.25);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.settings-card-icon {
  font-size: 1.25rem;
}

.settings-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-card-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-row:last-child {
  border-bottom: none;
}

.toggle-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-menstruation);
  cursor: pointer;
}

.input-time-compact {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.85rem;
  outline: none;
}

.btn-compact {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  white-space: nowrap;
}

.btn-compact:hover {
  background: var(--border-subtle);
}

.btn-compact:active {
  transform: scale(0.96);
}

.btn-warning-compact {
  color: var(--color-ovulation);
  border-color: rgba(255, 179, 0, 0.35);
}

.btn-warning-compact:hover {
  background: rgba(255, 179, 0, 0.15);
}

.btn-danger-compact {
  color: var(--color-menstruation);
  border-color: rgba(233, 30, 99, 0.35);
}

.btn-danger-compact:hover {
  background: rgba(233, 30, 99, 0.15);
}

.settings-actions-row {
  display: flex;
  gap: 8px;
}

.settings-actions-row .btn-compact {
  flex: 1;
}

.modal-footer-sticky {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
  flex-shrink: 0;
  z-index: 10;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}

.btn-primary-sticky {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--color-menstruation);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35);
}

.btn-primary-sticky:active {
  transform: scale(0.98);
}
