
/* --- HOME DASHBOARD GRID STYLING --- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-date-greeting {
  display: flex;
  flex-direction: column;
}

.dashboard-date {
  font-size: 12px;
  font-weight: 560;
  color: var(--text-3);
}

.dashboard-greeting {
  font-size: 28px;
  font-weight: 560;
  color: var(--text-main);
  font-family: "Lora";
}




/* 2-Column Responsive Grid */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Common Dark Home Card Base */
.home-card {
  background: #1e293b; /* Dark card surface */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Header & Accent Icons */
.home-card-header {
  margin-bottom: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}



/* CARD 1: MOOD HERO (Spans Full Width on Top) */
.mood-hero-card {
  grid-column: span 2;
  background-color: #fff;
}


.evil svg{
  background-color: #fff;
}
.evil2 svg{
  color: #fff;
  background: none;
}
.mood-hero-body {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-bottom: -10px;
}

.pie-chart-wrapper {
  width: 84px;
  height: 84px;
  position: relative;
  pointer-events: none;
  margin-bottom: 10px;
}

.mood-hero-stats h3 {
  font-size: 40px;
  font-weight: 800;
  color: var(--green-check);
  margin: 0;
  line-height: 1;

}
.mood-hero-stats p {
  font-size: 15px;
  font-weight: 440;
  color: var(--text-main);
  margin: 2px 0 6px 0;
}

.mood-stat-breakdown{
  display: none;
  color: black;
  font-size: 12px;
  line-height: 20px;
  background-color: #e2e2e2;
  border-radius: 8px;
  padding: 6px 10px;
}

.top-mood-pill {
  font-size: 28px;
  color: var(--green-check);
  gap: 4px;
}
.top-mood-label span{
  color: var(--green-check);
}
.top-mood-label{
  color: var(--text-main);
  font-size: 18px;
}

/* CARD 2: COMPACT MEDICATION REMINDER */
.med-compact-card {
  display: none;
  grid-column: span 1;
  background-color: var(--card-bg);
}

.med-status-badge {
  font-size: 18px;
  font-weight: 700;
  color: #ca8a0a;
}


/* CARD 3: WEIGHT STAT (Spans 1 Column) */
.weight-stat-card {
  grid-column: span 1;
  background-color: #ffffff;
}

.weight-stat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weight-main-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000000;
}

.weight-main-val small {
  font-size: 0.8rem;
  color: black;
  font-weight: 400;
}

.weight-change-badge {
  font-size: 15px;
  font-weight: 500;
  width: fit-content;
  color: var(--text-main);
}










/* Calendar Wrapper & Grid */
.calendar-wrapper {
  margin-top: 12px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin-bottom: 8px;
}

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

/* Individual Day Cells */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-main, #0f172a);
  background-color: var(--card-bg-subtle, #f1f5f9);
  transition: transform 0.15s ease, background-color 0.2s;
}

.cal-day.empty {
  background: transparent;
}

.cal-day.today {
  border: 4px solid var(--true-blue);
  font-weight: 800;
}

/* Status Highlights */
.cal-day.taken {
  background-color: var(--true-blue); /* Accent Green */
  color: var(--feat-text);
  font-weight: 800;
}

.cal-day.partial {
  background-color: #f59e0b; /* Amber */
  color: white;
}

.cal-day.missed {
  background-color: #a8abad; /* Soft Red */
  color: white;
}

/* Calendar Legend Footer */
.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.day-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.day-dot.taken { background-color: var(--true-blue); }
.day-dot.partial { background-color: #f59e0b; }
.day-dot.missed { background-color: #a8abad; }




.plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1rem;
  line-height: 1;
}




.med-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-edit-item,
.btn-delete-item {
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-edit-item {
  background: #f1f5f9;
  color: #334155;
}

.btn-delete-item {
  background: #fee2e2;
  color: #991b1b;
}

.btn-secondary { background: #e2e8f0; color: #4a5568; }
.btn-primary { background: var(--blue-accent); color: white; }

/* Mood Distribution Card Styling */
.pie-chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  padding-top:4px;
}

/* Pie Chart Circle */
.pie-chart {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e2e8f0; /* Default fallback when empty */
  transition: background 0.8s ease;
  flex-shrink: 0;
}



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

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

/* 1–6 Mood Color Palette */
.score-6 { background-color: #2e7d32; } /* Dark Green */
.score-5 { background-color: #66bb6a; } /* Soft Green */
.score-4 { background-color: #ffee58; } /* Yellow */
.score-3 { background-color: #ffa726; } /* Orange */
.score-2 { background-color: #ef5350; } /* Coral Red */
.score-1 { background-color: #c62828; } /* Deep Red */






/* Progress Bar Container */
.water-tracker-container {
  margin: 10px 0 16px 0;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 6px;
}

.progress-bar-bg {
  position: relative;
  background-color: #f1f8fef4; /* Empty track color */
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0px 10px 7px 0px #f6fbffc4;

}

.progress-bar-fill {
  background: linear-gradient(0deg, #0092f3, #0daeff); /* Warm Amber / Coffee theme */
  height: 100%;
  width: 0%;
  border-radius: 12px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* White Notch Overlay Ticks */
.ruler-ticks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 15%;
  pointer-events: none;
}

.tick {
  width: 4px;
  height: 12px;
  background-color: #fff;
  margin-top: 0;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

/* Modal Quick Add Presets */
.quick-add-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.quick-add-btn {
  flex: 1;
  padding: 10px;
  background-color: #e2f0fd;
  color: #0088cc;
  border: 1px solid #bbeeef;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}


/* Caffeine Specific Progress Bar Color */
.progress-bar-fill.caffeine-bar {
  background: linear-gradient(0deg, #654426, #a36327); /* Warm Amber / Coffee theme */
}

/* Modal Goal Setter Styles */
.goal-setting-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.goal-setting-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  display: block;
  margin-bottom: 0.4rem;
}

.caffeine-quick-btn {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.caffeine-quick-btn:active {
  background-color: #fde68a;
}

/* Sleep Card Layout */
.sleep-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sleep-label {
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
}

.sleep-number-input {
  width: 70px;
  padding: 8px 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-align: center;
  border: 0px solid var(--border-color);
  border-radius: 8px;
  outline: none;
  background-color: var(--border-color);
}

.sleep-number-input:focus {
  border-color: #22c55e;
}

/* Sleep Quality Section */
.sleep-quality-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.sleep-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Dynamic Badge Colors */
.badge-poor {
  background-color: #fee2e2;
  color: #ef4444;
}

.badge-fair {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-good {
  background-color: #dcfce7;
  color: #16a34a;
}

.badge-excellent {
  background-color: #d1fae5;
  color: #059669;
}

/* Custom Sleep Range Slider */
.sleep-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, #4ade80 66%, #e2e8f0 66%);
  outline: none;
}

/* Slider Thumb (WebKit / Safari / Mobile) */
.sleep-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Slider Thumb (Firefox) */
.sleep-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}


/* Sexual Activity Card Layout */
.log-time-section,
.protection-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.section-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
}

/* Side-by-Side Date & Time Row */
.datetime-inputs-row {
  display: flex;
  gap: 12px;
}

.app-date-input,
.app-time-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-main);
  border: 0px solid #e2e8f0;
  border-radius: 10px;
  background-color: var(--border-color);
  outline: none;
  font-family: inherit;
}

.app-date-input:focus,
.app-time-input:focus {
  border-color: #be185d; /* Matches your app's main cycle accent hue */
}

/* Protection Pill Selectors Grid */
.protection-selector-grid {
  display: flex;
  gap: 12px;
}

.protection-tile {
  flex: 1;
  cursor: pointer;
}

.protection-tile .tile-radio {
  display: none; /* Hide default radio check circle */
}

.protection-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background-color: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
}
.protection-btn.yes{
  background-color: #07a22626;
  color: #009a31;
}
.protection-btn.no{
  background-color: #e45f0030;
  color: #e44c00;
}

/* Active Selected Tile State */
.protection-tile .tile-radio:checked + .protection-btn.yes {
  background-color: #009a31;
  color: #fff;
}
.protection-tile .tile-radio:checked + .protection-btn.no {
  background-color: #e44c00;
  color: #fff;
}



/* Weight Card Add Button Styling */
.weight-add-btn {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Graph Wrapper Layout */
.graph-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  height: 140px;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding-bottom: 4px;
  white-space: nowrap;
}

.chart-container {
  position: relative;
  flex: 1;
  height: 100%;
  background-color: #d9dfe20e;
  border-top:  1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.chart-border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
}

.chart-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e7eaed;
}

#weight-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}


.mood-add-btn {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* 1-6 Rating Selector Buttons */
.rating-picker {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 16px;
}

.rating-picker label {
  flex: 1;
  text-align: center;
  margin: 0 !important;
}

.rating-picker input[type="radio"] {
  display: none; /* Hide real radio dot */
}

.rating-picker span {
  display: block;
  padding: 10px 0;
  background-color: var(--border-color);
  border-radius: 8px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.rating-picker input[type="radio"]:checked + span {
  background-color: var(--true-blue); /* Sage green accent */
  color: white;
}

/* Cycle Tracker Card Metrics */
.cycle-summary {
  display: flex;
  justify-content: space-around;
  background-color: var(--card-bg-subtle, #f1f5f9);
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  text-align: center;
}

.cycle-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* --- CONTRACEPTIVE SECTION --- */
.contraceptive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;

  gap: 6px; /* Tight gap to fit snugly on mobile screens */
  margin-top: 12px;
  width: 100%;
}

.contra-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.contra-tile input[type="radio"] {
  display: none; /* Hide default radio button */
}

.contra-box {
  width: 56px;
  height: auto;
  aspect-ratio: 1 / 1;
  background-color:var(--border-color);
  border: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}


.contra-icon {
  width: 34px;
  height: auto;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.contra-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  transition: color 0.2s ease;
}

/* Selected Tile Accent State */
.contra-tile input[type="radio"]:checked + .contra-box {
  background-color: var(--true-blue); /* App primary accent */
  border-color: var(--true-blue);
}

.contra-tile input[type="radio"]:checked + .contra-box .contra-icon {
  color: var(--feat-text);
}

.contra-tile input[type="radio"]:checked ~ .contra-label {
  color: var(--text-main);
  font-weight: 800;
}
.text-input{
  margin-top: 10px;
  width: 100%;
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;

}
/* Privacy Note Box */
.privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 20px 0;
}

.info-icon {
  width: 13px;
  height: auto;
  color: var(--text-2);
  flex-shrink: 0;
  margin-top: 1px;

}

.privacy-note p {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-2);
  margin: 0;
  text-align: left;
}

/* Confirm Button Checkmark Icon */
.confirm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-check-icon {
  width: 18px;
  height: 18px;
}


.subcard-subtitle {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 360;
}


/* --- HOME DASHBOARD CARDS --- */
.home-card {
  margin-bottom: 16px;
  
}
.view-header{
  display: none;
}
.view-title{
  font-size: 30px;
  color: var(--text-main);
  font-weight: 500;
  display: none;
}

.view-subtitle{
  color: var(--text-2);
  font-size: 18px;
}

/* Top Settings Row */
.display-row{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: end;
  margin-bottom: -2px;
}
.settings-btns{
  display: flex;
  align-items: center;
}

.row-btn{
  background: none;
  color: var(--text-2);
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  box-shadow: 1px 3px 6px #00000000;
  background-color: var(--card-bg);
  transition: all 0.07s ease;
}
.row-btn svg{
  height: 36px;
  width: auto;
}
.row-btn:active {
  transform: scale(0.8);
  background: var(--other);
  color: var(--text-2);
}



.row-btns{
  display: flex;
  gap: 6px;
}

.alarm svg{
  height: 24px;
  width: auto;
  margin-top: 4px;
}


.quick-log-btn{
  background-color: var(--btn-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 640;
  height: 34px;
  border: none;
  border-radius: 8px;
  padding: 0px 20px 0px 12px;

  display: flex;
  align-items: center;
  gap: 6px;
}
.quick-log-btn:hover{
  background-color: #346af4;
}

.date-view-btn{
  background-color: var(--card-bg);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 440;
  border: 1px solid var(--border-color);
  height: 38px;
  border-radius: 99px;
  padding: 0px 10px 0px 16px;

  display: flex;
  align-items: center;
  gap: 8px;
}


/* Card 1: Mood Summary */
.mood-summary-body {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pie-chart-container {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.mood-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #64748b;
}

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

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-great { background-color: #22c55e; }
.dot-okay { background-color: #eab308; }
.dot-low { background-color: #ef4444; }

.mood-summary-text {
  flex: 1;
}

.mood-report-output {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;

  color: var(--green-check);
}

.summary-highlight {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Card 2: Medication 7-Day Strip */
.med-strip-container {
  margin: 18px 0;
}

.med-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.med-day-pill {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.med-day-pill.missed {
  background-color: #e11d48;
  color: #ffffff;
}

.med-day-pill.taken {
  background-color: #22c55e;
  color: #ffffff;
}

.card-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

/* Card 3: Cycle Summary Box */
.cycle-summary-box {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cycle-metric {
  display: flex;
  flex-direction: column;
}

.cycle-metric.align-right {
  text-align: right;
}

.metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.metric-val {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

/* Card 4: Calendar Header */
.calendar-header-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.calendar-date-badge {
  font-size: 0.75rem;
  color: #94a3b8;
}


.btn-secondary-sm {
  background-color: black;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 20px 11px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary-sm:active {
  background-color: #e2e8f0;
}



/* Page Layout for Fixed Navbar */
body {
  padding-bottom: 90px; /* Prevents card content from hiding behind the navbar */
}

.app-views {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  margin-top: 8px;
  padding-bottom: 90px;
}

/* Tab View Visibility */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.tab-view.active {
  display: flex;
}










/* --- Card Reordering Styles --- */

/* Dashed outline applied to ALL cards while in Reorder Mode */
.card.is-draggable {
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: 3px dashed #0084ff !important;
  outline-offset: -3px;
  transition: all 0.05s;
}


.card.is-draggable:active {
  cursor: grabbing;
}

.card.is-draggable * {
  pointer-events: none; /* Prevents text/buttons from intercepting drags */
}

/* The card actively being lifted */
.card.dragging {
  opacity: 0.45;
  transform: scale(0.98);
  outline-color: var(--primary-accent, #3883e0) !important;
}

/* The target card being hovered over */
.card.drag-over {
  outline-color: var(--primary-accent, #3883e0) !important;
  transform: translateY(4px);
  filter: brightness(90%);

}

/* Button active state */
.reorder-btn.active {
  background: var(--blue-link);
}







/* --- MOOD SCATTERPLOT DASHBOARD CARD --- */
.mood-scatter-card {
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  margin-bottom: 18px;
}

.scatter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}

.scatter-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom:10px;
}

.scatter-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.scatter-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  display: none;
}

.scatter-window-pill {
  font-size: 0.72rem;
  color: #94a3b8;

  font-weight: 600;
}

.mood-scatter-wrapper {
  display: flex;
  gap: 8px;
}

.scatter-y-labels {
  display: none;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding-bottom: 26px; /* aligns with bottom grid border */
  width: 60px;
  flex-shrink: 0;
}

.scatter-y-item {
  font-size: 12px;
  color: #6f7680;
  height: 20px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 300;
}

.scatter-y-item svg {
  width: 14px;
  height:auto;
  flex-shrink: 0;
  display: none;
}

.scatter-grid-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.scatter-canvas {
  position: relative;
  height: 320px; /* 14 moods * 28px */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #f5f7f83f;
  border-radius: 10px;

}

.scatter-grid-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #b3b9bc31;
}

.scatter-grid-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #cacfd411;
}

.scatter-x-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding-top: 12px;
  text-align: center;
}

.scatter-x-item {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
}

.scatter-x-item.today {
  color:var(--blue-accent);
  font-weight: 700;
}

.scatter-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #0b1120;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scatter-node:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 10;
}

.scatter-tooltip {
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.7rem;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -130%);
  display: none;
  z-index: 30;
}



/* --- UNIFIED MOOD CARD & SWITCHER --- */
.mood-hero-card {
  padding: 20px 16px;
  background: var(--card-bg, rgba(22, 30, 49, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  backdrop-filter: blur(16px);
}

.mood-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mood-header-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mood-main-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.mood-sub-title {
  font-size: 14px;
  color: var(--text-2);
}

/* Segmented Switcher */
.mood-view-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
  border-radius: 12px;
  gap: 2px;
  gap: 10px;
}

.mood-toggle-btn {
  background: var(--contrast-bg);
  border: none;
  color: var(--text-2);
  padding: 2px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}.mood-toggle-btn svg{
  height: 34px;
  width: auto;
}

.mood-toggle-btn.active {
  color: var(--blue-accent);
}

/* Display Pane Visibility */
.mood-display-pane {
  display: none;
}
.mood-display-pane.active {
  display: block;
}

/* --- 2D COMPASS VIEWPORT --- */
.compass-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, #130625de 0%, #161926 100%);
  border-radius: 10px;
  overflow: hidden;
  margin: 4px 0 12px 0;
}

.axis-x {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff26;
}

.axis-y {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.quadrant-label {
  position: absolute;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  pointer-events: none;
}
.quadrant-label span {
  font-weight: 400;
  opacity: 0.7;
  font-size: 12px;

}
.q-top-left     { top: 10px; left: 12px; }
.q-top-right    { top: 10px; right: 12px; text-align: right; }
.q-bottom-left  { bottom: 10px; left: 12px; }
.q-bottom-right { bottom: 10px; right: 12px; text-align: right; }

.axis-tag {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
  display: none;
}
.tag-high-arousal { top: 6px; left: 52%; }
.tag-low-arousal  { bottom: 6px; left: 52%; }
.tag-neg-valence  { top: 51%; left: 8px; transform: translateY(-16px); }
.tag-pos-valence  { top: 51%; right: 8px; transform: translateY(-16px); }

/* Compass Node Dots */
.compass-node {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.compass-node:hover {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 15;
}

.compass-insight-bar {
  background:var(--contrast-bg);
  border-radius: 12px;
  padding: 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compass-insight-bar p {
  color: var(--text-2);
  font-size: 13px;
}








