/* Privacy note card */
.privacy-note {
  display: flex;
  gap: 0.75rem;
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px dashed rgba(var(--primary-rgb), 0.2);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Prediction boxes */
.period-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 580px) {
  .period-metrics {
    grid-template-columns: 1fr;
  }
}

.period-metric-box {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.box-period { border-left: 4px solid #ef4444; }
.box-ovulation { border-left: 4px solid #a855f7; }
.box-fertile { border-left: 4px solid #06b6d4; }

.pm-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pm-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Notification Bell Switch */
.notification-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

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

.bell-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.notification-toggle input:checked ~ .bell-icon {
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 5px rgba(var(--primary-rgb), 0.4));
}

/* Calendar Section & Legends */
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
}

.legend-item-cal {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

.dot-period, .day-period { background-color: #ef4444 !important; color: white !important; }
.dot-ovulation, .day-ovulation { background-color: #a855f7 !important; color: white !important; }
.dot-fertile, .day-fertile { background-color: #06b6d4 !important; color: white !important; }
.dot-safe, .day-safe { background-color: rgba(16, 185, 129, 0.15) !important; border: 1px solid rgba(16, 185, 129, 0.4); color: #10b981 !important; }

/* Calendars Columns */
.calendars-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .calendars-carousel {
    grid-template-columns: 1fr;
  }
}

.month-container {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.month-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  text-align: center;
}

.weekday-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-bottom: 0.25rem;
}

.day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 50%;
  color: var(--text-secondary);
}

.day-empty {
  visibility: hidden;
}

.day-other {
  background: transparent;
  color: var(--text-muted);
}

/* Today highlight */
.day-today {
  box-shadow: 0 0 0 2px var(--text-primary);
  font-weight: 700;
}
