/* ==========================================================================
   Slikyface Period Tracker - Mobile-First Soft Pink & White Theme
   Combines Slikyface Branding with Soft, Calming Rose Palette
   ========================================================================== */

@import url('/assets/universal-nav.css');
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-page: #fdfafb;
  --bg-card: #ffffff;
  --bg-subtle: #fff5f7;
  --bg-accent-soft: #ffe5ec;
  --border-subtle: #f9d2dc;
  --border-focus: #fb6f92;
  
  --rose-primary: #fb6f92;
  --rose-dark: #d64770;
  --rose-deep: #a81c47;
  --rose-light: #ff8fab;
  --rose-pale: #ffc2d1;
  --rose-glow: rgba(251, 111, 146, 0.25);
  
  --text-primary: #2b2d42;
  --text-secondary: #5c677d;
  --text-muted: #8d99ae;
  --text-light: #ffffff;
  
  --lime-sliky: #b8ff36;
  --dark-sliky: #0d120d;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(251, 111, 146, 0.08);
  --shadow-md: 0 8px 24px rgba(251, 111, 146, 0.12);
  --shadow-lg: 0 16px 40px rgba(251, 111, 146, 0.18);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Topbar Navigation (Slikyface Global Header Integration)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--dark-sliky);
  border-bottom: 1px solid #1c261b;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-orbit {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(184, 255, 54, 0.5);
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(184, 255, 54, 0.2);
}

.brand-orbit span {
  width: 12px;
  height: 12px;
  background: var(--lime-sliky);
  border-radius: 3px;
  display: block;
}

.brand-type strong {
  font-size: 17px;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.brand-type strong span {
  color: var(--lime-sliky);
}

.brand-type small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: #8da482;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: #a5b89d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--lime-sliky);
}

.user-nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 255, 54, 0.1);
  border: 1px solid rgba(184, 255, 54, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--lime-sliky);
}

@media (max-width: 680px) {
  .topbar {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 11px;
  }
}

/* --------------------------------------------------------------------------
   App Container & Hero
   -------------------------------------------------------------------------- */
.app-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px 16px;
}

.hero-banner {
  text-align: center;
  padding: 24px 16px 32px;
  background: linear-gradient(180deg, #fff0f3 0%, var(--bg-page) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--rose-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--rose-primary);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 540px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Guest Exploration Banner (Subtle & Prominent Top Bar)
   -------------------------------------------------------------------------- */
.guest-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--rose-primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.guest-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guest-banner-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-accent-soft);
  color: var(--rose-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--rose-glow);
}

.guest-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guest-banner-text strong {
  color: var(--rose-dark);
  font-size: 15px;
  font-weight: 800;
}

.guest-banner-text span {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.guest-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .guest-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .guest-banner-content {
    align-items: flex-start;
  }
  .guest-banner-actions {
    margin-top: 6px;
    width: 100%;
  }
  .guest-banner-actions .btn {
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   Guest Action Sign-In Prompt Modal
   -------------------------------------------------------------------------- */
.guest-modal-card {
  max-width: 440px;
  text-align: center;
}

.guest-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.guest-prompt-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-accent-soft);
  color: var(--rose-primary);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 0 16px var(--rose-glow);
  margin-bottom: 4px;
}

.guest-prompt-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.guest-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.guest-prompt-actions .btn-block {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  text-decoration: none;
}

.guest-modal-footer {
  justify-content: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 12px 24px;
}

/* --------------------------------------------------------------------------
   Auth Prompt Card (Unauthenticated View)
   -------------------------------------------------------------------------- */
.auth-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin: 32px auto;
}

.auth-gate-icon {
  width: 68px;
  height: 68px;
  background: var(--bg-accent-soft);
  color: var(--rose-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px var(--rose-glow);
}

.auth-gate-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text-primary);
}

.auth-gate-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .auth-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-dark) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(251, 111, 146, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 111, 146, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--rose-dark);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--rose-primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-danger-outline {
  background: transparent;
  border-color: #ffd1d1;
  color: #c9184a;
}

.btn-danger-outline:hover {
  background: #fff0f3;
  border-color: #c9184a;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Prediction & Stats Cards
   -------------------------------------------------------------------------- */
.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.prediction-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rose-pale), var(--rose-primary), var(--rose-dark));
}

.prediction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.prediction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-regular {
  background: #e8f9ed;
  color: #2b8a3e;
  border: 1px solid #c3edd0;
}

.badge-irregular {
  background: #fff4e6;
  color: #d9480f;
  border: 1px solid #ffd8a8;
}

.badge-insufficient {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
}

.prediction-main {
  margin-bottom: 20px;
}

.prediction-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.prediction-date {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  color: var(--rose-dark);
  letter-spacing: -0.02em;
}

.prediction-window {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.prediction-explanation {
  background: var(--bg-subtle);
  border-left: 3px solid var(--rose-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Metric Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.metric-value span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Action Bar
   -------------------------------------------------------------------------- */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.action-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Unified Future Period Forecast - Collapsible Travel Dates & Calendar
   -------------------------------------------------------------------------- */
.forecast-calendar-wrap {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-subtle, #ffd6e7);
  border-radius: var(--radius-md, 12px);
  padding: 20px;
  margin-top: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(251, 111, 146, 0.05);
}

.travel-dates-collapsible {
  background: #fff8fa;
  border: 1px solid #ffd6e7;
  border-radius: var(--radius-md, 12px);
  margin-bottom: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.travel-dates-collapsible[open] {
  box-shadow: 0 4px 14px rgba(251, 111, 146, 0.08);
  border-color: var(--rose-pale, #ffb3c6);
}

.travel-dates-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--text-primary, #212529);
  background: transparent;
  transition: background 0.15s ease;
  list-style: none;
}

.travel-dates-summary::-webkit-details-marker {
  display: none;
}

.travel-dates-summary:hover {
  background: rgba(255, 230, 240, 0.5);
}

.travel-dates-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.travel-dates-summary-title::after {
  content: "▾";
  display: inline-block;
  font-size: 12px;
  color: var(--rose-primary, #fb6f92);
  transition: transform 0.2s ease;
}

.travel-dates-collapsible[open] .travel-dates-summary-title::after {
  transform: rotate(180deg);
}

.travel-dates-content {
  padding: 4px 18px 18px;
  border-top: 1px solid rgba(255, 214, 231, 0.6);
  animation: fadeIn 0.2s ease;
}

.travel-dates-desc {
  font-size: 13px;
  color: var(--text-secondary, #6c757d);
  margin: 10px 0 14px;
  line-height: 1.5;
}

.travel-icon {
  font-size: 18px;
  line-height: 1;
}

.vacation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.vacation-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.vacation-form {
  margin-bottom: 16px;
}

.vacation-inputs {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.vacation-field {
  flex: 1 1 180px;
}

.vacation-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vacation-field .form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.vacation-field .form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #fff;
  box-shadow: 0 0 0 3px var(--rose-glow);
}

.vacation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}

.vacation-result-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  margin-top: 16px;
  animation: fadeIn 0.25s ease;
}

.vacation-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.vacation-result-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vacation-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vacation-badge.badge-no-overlap {
  background: #ebfbee;
  color: #2b8a3e;
  border: 1px solid #b2f2bb;
}

.vacation-badge.badge-uncertainty-overlap {
  background: #fff9db;
  color: #e67700;
  border: 1px solid #ffe066;
}

.vacation-badge.badge-predicted-overlap {
  background: #ffe3e8;
  color: #c9184a;
  border: 1px solid #ffc9c9;
}

.vacation-badge.badge-insufficient {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
}

.vacation-result-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 10px;
}

.vacation-result-disclaimer {
  font-size: 11.5px;
  color: var(--text-muted);
  border-top: 1px solid rgba(251, 111, 146, 0.15);
  padding-top: 8px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Interactive Calendar
   -------------------------------------------------------------------------- */
.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.calendar-nav-buttons {
  display: flex;
  gap: 6px;
}

.cal-nav-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: bold;
}

.cal-nav-btn:hover {
  background: var(--bg-accent-soft);
  color: var(--rose-primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.cal-day-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.cal-day-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border: 1px solid transparent;
}

.cal-day-cell:hover:not(.empty) {
  background: var(--bg-subtle);
  border-color: var(--rose-pale);
}

.cal-day-cell.empty {
  cursor: default;
}

.cal-day-cell.today {
  border-color: var(--rose-primary);
  font-weight: 800;
}

.cal-day-cell.period-logged {
  background: linear-gradient(135deg, var(--rose-light), var(--rose-primary));
  color: var(--text-light);
  font-weight: 800;
  box-shadow: 0 2px 8px var(--rose-glow);
  z-index: 2;
}

.cal-day-cell.period-predicted-bleeding {
  background: #ffe3eb;
  border: 2px dashed var(--rose-primary);
  color: var(--rose-deep);
  font-weight: 700;
}

.cal-day-cell.period-uncertainty-band {
  background: #fff5f7;
  border: 1.5px dotted #ff8fab;
  color: var(--rose-dark);
}

.cal-day-cell.predicted-window {
  background: #fff0f5;
  border: 1px dashed var(--rose-primary);
  color: var(--rose-dark);
}

.cal-day-cell.vacation-day {
  background: #fff9db;
  border: 2px solid #fab005;
  color: #7950f2;
  font-weight: 700;
}

.cal-day-cell.vacation-overlap-bleeding {
  background: repeating-linear-gradient(45deg, #ffe3eb, #ffe3eb 6px, #fff3bf 6px, #fff3bf 12px);
  border: 2px solid #e03131;
  color: #c9184a;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(224, 49, 49, 0.3);
}

.cal-day-cell.vacation-overlap-uncertainty {
  background: repeating-linear-gradient(45deg, #fff5f7, #fff5f7 6px, #fff9db 6px, #fff9db 12px);
  border: 2px dashed #f59f00;
  color: #d9480f;
  font-weight: 700;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Ovulation & Fertile Window Visualization (Tasteful Lavender / Purple Theme)
   -------------------------------------------------------------------------- */
.cal-day-cell.ovulation-day {
  background: #f3f0ff;
  border: 2px solid #845ef7;
  color: #5f3dc4;
  font-weight: 800;
  position: relative;
  box-shadow: 0 2px 8px rgba(132, 94, 247, 0.25);
  z-index: 2;
}

.cal-day-cell.ovulation-day::after {
  content: "✦";
  position: absolute;
  bottom: 2px;
  font-size: 8px;
  color: #7950f2;
  line-height: 1;
}

.cal-day-cell.fertile-window-day {
  background: #f8f6ff;
  border: 1.5px dashed #b197fc;
  color: #6741d9;
  font-weight: 700;
}

.cal-day-cell.period-bleed-fertile {
  background: repeating-linear-gradient(45deg, #ffe3eb, #ffe3eb 6px, #f3f0ff 6px, #f3f0ff 12px);
  border: 2px dashed #9775fa;
  color: #9c36b5;
  font-weight: 800;
}

.cal-day-cell.vacation-fertile-day {
  background: repeating-linear-gradient(45deg, #fff9db, #fff9db 6px, #f3f0ff 6px, #f3f0ff 12px);
  border: 2px solid #9775fa;
  color: #5f3dc4;
  font-weight: 800;
}

.cal-day-cell.vacation-bleed-fertile {
  background: repeating-linear-gradient(45deg, #ffe3eb, #ffe3eb 4px, #f3f0ff 4px, #f3f0ff 8px, #fff9db 8px, #fff9db 12px);
  border: 2px solid #e03131;
  color: #c9184a;
  font-weight: 800;
}

.legend-dot.dot-ovulation {
  background: #845ef7;
  box-shadow: 0 0 6px rgba(132, 94, 247, 0.4);
}

.legend-dot.dot-fertile {
  background: #f8f6ff;
  border: 1.5px dashed #845ef7;
}

/* Controls & Show/Hide Toggle */
.calendar-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-toggle-wrap {
  display: flex;
  align-items: center;
}

.ovulation-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6741d9;
  cursor: pointer;
  user-select: none;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: #f8f6ff;
  border: 1px solid #d0bfff;
  transition: var(--transition);
}

.ovulation-toggle-label:hover {
  background: #f3f0ff;
  border-color: #b197fc;
}

.ovulation-toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ovulation-toggle-switch {
  width: 28px;
  height: 16px;
  background: #dee2e6;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.ovulation-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}

.ovulation-toggle-label input:checked + .ovulation-toggle-switch {
  background: #845ef7;
}

.ovulation-toggle-label input:checked + .ovulation-toggle-switch::after {
  transform: translateX(12px);
}

/* Integrated Ovulation Box in Prediction Card */
.ovulation-summary-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e5dbff;
}

.ovulation-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ovulation-summary-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #5f3dc4;
}

.ovulation-summary-icon {
  color: #845ef7;
  font-size: 14px;
}

.ovulation-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ovulation-badge.badge-regular {
  background: #f3f0ff;
  color: #5f3dc4;
  border: 1px solid #d0bfff;
}

.ovulation-badge.badge-irregular,
.ovulation-badge.badge-unreliable {
  background: #fff5f5;
  color: #c92a2a;
  border: 1px solid #ffc9c9;
}

.ovulation-badge.badge-insufficient {
  background: #f8f9fa;
  color: #495057;
  border: 1px solid #ced4da;
}

.ovulation-summary-dates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

@media (min-width: 540px) {
  .ovulation-summary-dates {
    grid-template-columns: 1fr 1fr;
  }
}

.ovulation-date-block {
  background: #f8f6ff;
  border: 1px solid #e5dbff;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.ovulation-date-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7950f2;
  display: block;
  margin-bottom: 3px;
}

.ovulation-date-value {
  font-size: 15px;
  font-weight: 800;
  color: #4c2889;
}

.ovulation-explanation {
  font-size: 12px;
  color: #5c5f66;
  line-height: 1.5;
  margin: 8px 0;
}

.ovulation-clinical-warning {
  background: #fff9db;
  border-left: 3px solid #fab005;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  color: #744210;
  line-height: 1.5;
  margin-top: 8px;
}

/* Timeline Cards Ovulation Box */
.forecast-ovulation-box {
  background: #f8f6ff;
  border: 1px solid #e5dbff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}

.forecast-ovulation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.forecast-ovulation-title {
  font-size: 11px;
  font-weight: 800;
  color: #5f3dc4;
  display: flex;
  align-items: center;
  gap: 4px;
}

.forecast-ovulation-details {
  font-size: 11px;
  color: #495057;
  line-height: 1.5;
}

.forecast-ovulation-details strong {
  color: #3b1d75;
}

.forecast-ovulation-msg {
  font-size: 11px;
  color: #868e96;
  margin: 0;
  line-height: 1.4;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.dot-period {
  background: var(--rose-primary);
}

.dot-predicted-bleeding {
  background: #ffe3eb;
  border: 1.5px dashed var(--rose-primary);
}

.dot-uncertainty-band {
  background: #fff5f7;
  border: 1.5px dotted #ff8fab;
}

.dot-vacation {
  background: #fff9db;
  border: 1.5px solid #fab005;
}

.dot-overlap {
  background: repeating-linear-gradient(45deg, #fb6f92, #fb6f92 3px, #fab005 3px, #fab005 6px);
  border: 1px solid #e03131;
}

.dot-prediction {
  background: #fff0f5;
  border: 1px dashed var(--rose-primary);
}

.dot-today {
  border: 1px solid var(--rose-primary);
}

/* --------------------------------------------------------------------------
   Future Period Forecast & Monthly Timeline
   -------------------------------------------------------------------------- */
.forecast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.forecast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #748ffc, var(--rose-primary), #f783ac);
}

.forecast-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.forecast-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose-primary);
  display: block;
  margin-bottom: 4px;
}

.forecast-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.forecast-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 540px;
}

.horizon-toggle-group {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3px;
  gap: 4px;
}

.horizon-btn {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.horizon-btn:hover {
  color: var(--rose-dark);
}

.horizon-btn.active {
  background: linear-gradient(135deg, var(--rose-primary) 0%, var(--rose-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(251, 111, 146, 0.35);
}

.forecast-summary-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-subtle);
  border-left: 3px solid var(--rose-primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.forecast-summary-pill {
  font-weight: 700;
  color: var(--text-primary);
}

.forecast-timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (min-width: 680px) {
  .forecast-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .forecast-timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(251, 111, 146, 0.05);
  transition: var(--transition);
  position: relative;
}

.timeline-card:hover {
  border-color: var(--rose-pale);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.timeline-cycle-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--bg-accent-soft);
  color: var(--rose-deep);
  text-transform: uppercase;
}

.timeline-cycle-month {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-bleeding-box {
  background: #fff0f5;
  border: 1px dashed var(--rose-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.timeline-bleeding-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rose-deep);
  margin-bottom: 3px;
}

.timeline-bleeding-dates {
  font-size: 14px;
  font-weight: 800;
  color: var(--rose-dark);
}

.timeline-duration-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.timeline-uncertainty-box {
  background: var(--bg-page);
  border: 1px dotted var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline-uncertainty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.timeline-uncertainty-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rose-dark);
}

.timeline-view-cal-btn {
  width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--rose-dark);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.timeline-view-cal-btn:hover {
  background: var(--bg-accent-soft);
  border-color: var(--rose-primary);
}

.forecast-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.forecast-note-icon {
  font-size: 16px;
  line-height: 1;
}

.forecast-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  grid-column: 1 / -1;
}

.forecast-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.forecast-empty h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.forecast-empty p {
  margin: 0 auto;
  max-width: 440px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Cycle History Section
   -------------------------------------------------------------------------- */
.history-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.history-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-card);
  transition: var(--transition);
}

.history-card:hover {
  border-color: var(--rose-pale);
  box-shadow: var(--shadow-sm);
}

.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.history-dates {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-duration-tag {
  background: var(--bg-subtle);
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.history-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: capitalize;
}

.flow-spotting { background: #fdf2f4; color: #a81c47; }
.flow-light { background: #ffe5ec; color: #d64770; }
.flow-medium { background: #ffb3c6; color: #a81c47; }
.flow-heavy { background: #fb6f92; color: #ffffff; }

.symptoms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.symptom-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
}

.history-notes {
  font-size: 13px;
  color: var(--text-secondary);
  background: #fafafa;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 6px;
  font-style: italic;
}

.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
}

.empty-history {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}

.empty-history span {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Modal (Add / Edit Entry)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 45, 66, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overscroll-behavior: contain;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translateY(20px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-card > form,
#entryForm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafa;
  flex-shrink: 0;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 16px 8px;
    align-items: center;
  }
  .modal-card {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 14px;
  }
  .modal-header {
    padding: 14px 18px;
  }
  .modal-body {
    padding: 16px 18px;
    gap: 14px;
  }
  .modal-footer {
    padding: 12px 18px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* Form Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--rose-primary);
  box-shadow: 0 0 0 3px var(--rose-glow);
}

/* Flow Intensity Radio Group */
.flow-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.flow-option {
  position: relative;
}

.flow-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.flow-label {
  display: block;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-subtle);
}

.flow-option input[type="radio"]:checked + .flow-label {
  background: var(--rose-primary);
  color: #fff;
  border-color: var(--rose-primary);
  box-shadow: 0 2px 8px var(--rose-glow);
}

/* Symptoms Selector (Checkbox chips) */
.symptom-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symptom-tag {
  cursor: pointer;
}

.symptom-tag input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.symptom-tag span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.symptom-tag input[type="checkbox"]:checked + span {
  background: var(--rose-light);
  border-color: var(--rose-primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Medical Disclaimer & Privacy Section
   -------------------------------------------------------------------------- */
.disclaimer-card {
  background: #fffaf0;
  border: 1px solid #feebc8;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 12px;
  color: #7b341e;
  line-height: 1.6;
  margin-bottom: 24px;
}

.disclaimer-card strong {
  display: block;
  margin-bottom: 4px;
  color: #9c4221;
}

.privacy-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
  margin-bottom: 24px;
}

.privacy-card strong {
  display: block;
  margin-bottom: 4px;
  color: #14532d;
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.footer-wrap {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-wrap a {
  color: var(--rose-dark);
  text-decoration: none;
}

.footer-wrap a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}

.toast {
  background: var(--dark-sliky);
  color: #fff;
  border: 1px solid rgba(184, 255, 54, 0.4);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  animation: slideUp 0.3s ease;
}

.toast.toast-error {
  border-color: #ff6b6b;
  color: #ffd8d8;
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Advanced Prediction Engine: Dynamic Progression, Intervals & Biomarkers
   -------------------------------------------------------------------------- */
.prediction-cycle-day-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 111, 146, 0.12);
  color: var(--rose-deep);
  border: 1px solid rgba(251, 111, 146, 0.3);
}

.prediction-cycle-day-tag.late {
  background: #fff3bf;
  color: #d9480f;
  border-color: #ffd43b;
}

.prediction-intervals-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.interval-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.interval-pill.pill-50 {
  background: #fff0f6;
  color: #c2255c;
  border: 1px solid #fcc2d7;
}

.interval-pill.pill-80 {
  background: #f8f9fa;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.missed-tracking-notice {
  margin-top: 12px;
  padding: 10px 14px;
  background: #e7f5ff;
  border: 1px solid #a5d8ff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #1971c2;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.missed-notice-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.ovulation-tier-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
}

.ovulation-tier-badge.tier-1 {
  background: #e6fcf5;
  color: #0ca678;
  border: 1px solid #63e6be;
}

.ovulation-tier-badge.tier-2 {
  background: #e7f5ff;
  color: #1c7ed6;
  border: 1px solid #74c0fc;
}

.ovulation-tier-badge.tier-3 {
  background: #f3f0ff;
  color: #7950f2;
  border: 1px solid #d0bfff;
}

/* Optional Biomarkers Collapsible */
.biomarker-details {
  background: #faf8fc;
  border: 1px solid #e5dbff;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
}

.biomarker-summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5f3dc4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f0ff;
  user-select: none;
}

.biomarker-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #d0bfff;
  color: #3b1f8c;
}

.biomarker-content {
  padding: 12px 14px;
}

.biomarker-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

/* ==========================================================================
   Cycle Tracker Enhancements - Libido, Intimacy, Expanded Symptoms & Pregnancy Awareness
   ========================================================================== */

/* Discreet Calendar Indicators */
.cal-day-cell {
  position: relative;
}

.cal-day-num {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.cal-day-indicators {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  height: 6px;
}

.hide-sensitive-indicators .cal-day-indicators {
  display: none !important;
}

.day-ind {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.day-ind.ind-libido {
  background: #f59f00;
  box-shadow: 0 0 4px rgba(245, 159, 0, 0.4);
}

.day-ind.ind-sex {
  background: #e64980;
  box-shadow: 0 0 4px rgba(230, 73, 128, 0.4);
}

.day-ind.ind-symptom {
  background: #12b886;
  box-shadow: 0 0 4px rgba(18, 184, 134, 0.4);
}

.day-ind.ind-preg {
  background: #7950f2;
  box-shadow: 0 0 4px rgba(121, 80, 242, 0.4);
}

.legend-dot.dot-libido {
  background: #f59f00;
}

.legend-dot.dot-sex {
  background: #e64980;
}

.legend-dot.dot-symptom {
  background: #12b886;
}

.legend-dot.dot-preg {
  background: #7950f2;
}

/* Toolbar & Calendar Toggles */
.calendar-toggle-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tool-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
}

.tool-toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tool-toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  background-color: #dee2e6;
  border-radius: 20px;
  transition: var(--transition);
}

.tool-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.tool-toggle-label input:checked + .tool-toggle-switch {
  background-color: var(--rose-primary);
}

.tool-toggle-label input:checked + .tool-toggle-switch::after {
  transform: translateX(14px);
}

/* Pregnancy Guidance Card */
.pregnancy-guidance-card {
  background: #fbf9ff;
  border: 1px solid #d0bfff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(132, 94, 247, 0.08);
}

.pregnancy-guidance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pregnancy-guidance-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #5f3dc4;
}

.pregnancy-guidance-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #e5dbff;
  color: #3b1f8c;
  padding: 3px 8px;
  border-radius: 4px;
}

.pregnancy-guidance-alert {
  background: #fff0f6;
  border-left: 3px solid #e64980;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #a61e4d;
  margin-bottom: 12px;
  font-weight: 500;
}

.pregnancy-guidance-testing {
  font-size: 12px;
  line-height: 1.6;
  color: #495057;
}

.pregnancy-guidance-testing ul {
  margin: 6px 0 0 0;
  padding-left: 20px;
}

.pregnancy-disclaimer-note {
  font-size: 11px;
  color: #868e96;
  margin-top: 8px;
  font-style: italic;
}

/* Daily Check-in Form Sections */
.checkin-section {
  background: #fffcfd;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
}

.checkin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.checkin-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkin-section-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.btn-clear-field {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}

.btn-clear-field:hover {
  color: var(--rose-dark);
}

/* Libido Selector Pills */
.libido-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.libido-btn {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.libido-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--rose-pale);
}

.libido-btn.active {
  background: #fff3bf;
  border-color: #fab005;
  color: #d9480f;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(250, 176, 5, 0.2);
}

/* Intimacy & Sexual Activity */
.intimacy-selector {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.intimacy-btn {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.intimacy-btn:hover {
  background: var(--bg-subtle);
}

.intimacy-btn.active {
  background: #ffe3ec;
  border-color: var(--rose-primary);
  color: var(--rose-deep);
  font-weight: 700;
}

.contraception-wrap {
  margin-top: 12px;
  padding: 12px;
  background: #fff5f8;
  border-radius: 6px;
  border: 1px dashed var(--rose-pale);
}

/* Symptoms Enhanced with Inline Severity */
.symptom-tag-enhanced {
  display: inline-flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.symptom-tag-enhanced:hover {
  border-color: var(--rose-pale);
}

.symptom-tag-enhanced.active {
  background: #e6fcf5;
  border-color: #20c997;
  color: #087f5b;
}

.symptom-header-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.symptom-severity-toggle {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.sev-btn {
  background: #fff;
  border: 1px solid #c3fae8;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  cursor: pointer;
  color: #099268;
}

.sev-btn.active {
  background: #20c997;
  color: #fff;
}

.symptom-safety-alert {
  font-size: 11px;
  color: #495057;
  background: #f8f9fa;
  border-left: 2px solid #adb5bd;
  padding: 6px 10px;
  border-radius: 3px;
  margin-top: 10px;
  line-height: 1.4;
}

/* Pregnancy Test Modal Section */
.preg-test-results-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.preg-res-btn {
  flex: 1;
  background: #fff;
  border: 1px solid #d0bfff;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5f3dc4;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.preg-res-btn:hover {
  background: #f8f6ff;
}

.preg-res-btn.active {
  background: #7950f2;
  border-color: #7950f2;
  color: #fff;
  font-weight: 700;
}

/* History Badges */
.history-tag-libido {
  display: inline-block;
  background: #fff3bf;
  color: #d9480f;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #ffd43b;
}

.history-tag-intimacy {
  display: inline-block;
  background: #ffe3ec;
  color: var(--rose-deep);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--rose-pale);
}

.history-tag-symptom {
  display: inline-block;
  background: #e6fcf5;
  color: #087f5b;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #a3e635;
}

.history-tag-preg {
  display: inline-block;
  background: #f3f0ff;
  color: #5f3dc4;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #d0bfff;
}

