/* =========================================================
   GymDiet Master — Goal Date Forecaster (Dark Neon Theme)
   OLED Black (#000000 / #05080e), Neon Green (#00f076), Zero Blue
   ========================================================= */

.goal-forecast-card-widget {
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.3);
  border-top: 1px solid rgba(0, 240, 118, 0.6);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 118, 0.12);
  margin-top: 14px;
  box-sizing: border-box;
  width: 100%;
}

.goal-forecast-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.goal-forecast-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00f076;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-forecast-title {
  margin: 3px 0 0 0;
  font-size: 16.5px;
  font-weight: 900;
  color: #ffffff;
}

.goal-forecast-date-box {
  background: #000000;
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
  min-height: 84px;
}

.goal-forecast-date-val {
  font-size: 22px;
  font-weight: 900;
  color: #00f076;
  letter-spacing: -0.01em;
  text-shadow: 0 0 18px rgba(0, 240, 118, 0.4);
}

.goal-forecast-date-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 4px;
}

.goal-forecast-cta-btn {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(0, 240, 118, 0.14);
  border: 1px solid rgba(0, 240, 118, 0.35);
  color: #00f076;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.goal-forecast-cta-btn:hover {
  background: rgba(0, 240, 118, 0.22);
  border-color: #00f076;
}

/* Modal Overlay & Dialog */
.goal-forecast-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.goal-forecast-dialog {
  width: 100%;
  max-width: 440px;
  background: #05080e;
  border: 1px solid rgba(0, 240, 118, 0.35);
  border-top: 1px solid rgba(0, 240, 118, 0.6);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 118, 0.15);
  padding: 22px 20px;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
}

.goal-forecast-modal-overlay.is-active .goal-forecast-dialog {
  transform: translateY(0) scale(1);
}

.goal-forecast-weights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.goal-forecast-weight-input-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.goal-forecast-weight-input-wrap:focus-within {
  border-color: #00f076;
  background: rgba(0, 240, 118, 0.05);
}

.goal-forecast-input-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.goal-forecast-num-input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  outline: none;
}

/* Pace selector tabs */
.goal-forecast-pace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.goal-forecast-pace-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #cbd5e1;
}

.goal-forecast-pace-pill:hover,
.goal-forecast-pace-pill.is-active {
  background: rgba(0, 240, 118, 0.15);
  border-color: rgba(0, 240, 118, 0.45);
  color: #00f076;
}

.goal-forecast-pace-title {
  font-size: 12.5px;
  font-weight: 800;
  display: block;
}

.goal-forecast-pace-desc {
  font-size: 10.5px;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.goal-forecast-pace-pill.is-active .goal-forecast-pace-desc {
  color: #cbd5e1;
}

/* Milestones breakdown */
.goal-forecast-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.goal-forecast-milestone-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
}

.goal-forecast-milestone-label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.goal-forecast-milestone-pct {
  font-size: 11px;
  font-weight: 800;
  color: #00f076;
  background: rgba(0, 240, 118, 0.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.goal-forecast-milestone-val {
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.goal-forecast-safety-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 118, 0.1);
  border: 1px solid rgba(0, 240, 118, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 14px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.goal-forecast-safety-badge svg {
  color: #00f076;
  flex-shrink: 0;
}
