/* Tab Navigation Styles - Bottom App Style */
.tab-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 90px 20px; /* Extra padding for fixed bottom nav */
}

.tab-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.tab-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--subtitle);
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  color: var(--primary);
}

.tab-icon {
  font-size: 24px;
}

.tab-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Cycle Tracker Styles */
.cycle-tracker {
  max-width: 600px;
  margin: 0 auto;
}

.cycle-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.cycle-header {
  text-align: center;
  margin-bottom: 30px;
}

.cycle-header h2 {
  margin: 0 0 10px 0;
  color: var(--text);
}

.cycle-day {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary);
  margin: 10px 0;
}

.cycle-phase {
  font-size: 20px;
  color: var(--subtitle);
  margin-bottom: 10px;
}

.phase-icon {
  font-size: 60px;
  margin: 20px 0;
}

.cycle-input-group {
  margin: 20px 0;
}

.cycle-input-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text);
}

.cycle-input-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

.phase-description {
  background: var(--bg);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  line-height: 1.6;
}

/* Calendar Styles - Mobile Optimized */
.calendar-container {
  margin: 10px 0;
  max-width: 100%;
}

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

.calendar-month {
  font-size: 18px;
  font-weight: bold;
  color: #d32f6f;
}

.calendar-nav {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #d32f6f;
  cursor: pointer;
  padding: 0 5px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 5px;
  text-align: center;
}

.calendar-weekday {
  font-size: 10px;
  font-weight: 600;
  color: var(--subtitle);
  padding: 4px 0;
}

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

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.calendar-day.other-month {
  color: var(--subtitle);
  opacity: 0.3;
}

.calendar-day.period {
  background: #d32f6f;
  color: white;
}

.calendar-day.ovulation {
  background: #9575cd;
  color: white;
}

.calendar-day.fertile {
  background: #e1d5f7;
  color: var(--text);
}

.calendar-day.predicted {
  border: 2px solid #ffb3d9;
  background: transparent;
}

.calendar-day.today {
  border: 2px solid #d32f6f;
}

/* Energy Display Styles */
.energy-display {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.energy-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.energy-level {
  font-size: 60px;
  margin: 20px 0;
  text-align: center;
}

.energy-score {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary) 0%, #00d4aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 20px 0;
}

.energy-bar-container {
  width: 100%;
  height: 30px;
  background: var(--bg);
  border-radius: 15px;
  overflow: hidden;
  margin: 30px 0;
}

.energy-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #00d4aa 100%);
  transition: width 1s ease;
  border-radius: 15px;
}

.energy-factors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.energy-factor {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  border: 2px solid var(--border);
}

.energy-factor-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--subtitle);
  margin-bottom: 8px;
}

.energy-factor-value {
  font-size: 24px;
  font-weight: bold;
  color: var(--text);
}
