

.color-slider-container {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 10px auto;
  touch-action: none; 
  cursor: pointer;
}

/* The Track */
.color-track {
  display: flex;
  width: 100%;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 15px; 
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.color-segment {
  flex: 1; /* Makes all 3 segments take up exactly 33.33% of the bar */
}

/* --- Vertical Gradients for the 3 Sections --- */
.severity-mild {
  background: linear-gradient(to bottom, #ff3c00, #b61800); 
  border-right: 5px solid var(--card-bg);
}
.severity-moderate {
  background: linear-gradient(to bottom, #b41800, #781202); 
}
.severity-severe {
  background: linear-gradient(to bottom, #8d1806, #4e1006); 
  border-left: 5px solid var(--card-bg);
}
.severity-end{
  background: linear-gradient(to bottom, #70221b, #3f241b); 
  border-left: 5px solid var(--card-bg);
}

/* The Arrow Indicator */
.slider-indicator {
  position: absolute;
  top: -2px;
  /* Center of the first segment (100% / 3 segments / 2 = 16.66%) */
  left: 16.66%; 
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid #c2c2c2; 
  transition: left 0.1s ease-out; /* The snap animation */
}


/* Educational Info Card */
.color-edu-card {
  background:  #9292920e;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
}

.edu-card-header{
  justify-content: space-between;
  display: flex;
  align-items: start;
  margin-bottom: 12px;
}
.dismiss-btn{
  background-color: #8989892a;
  color: #828282;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 400;
  margin-top: 1px;
}

.color-edu-card h4 {
  font-size: 22px;
  color: var(--text-main);
}

.color-edu-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
  font-weight: 280;
}

.learn-more-link {
  color: var(--link-blue); 
  display: flex;
  gap: 4px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 280;
  transition: opacity 0.2s;
}

.learn-more-link:hover {
  opacity: 0.7;
}




/* --- DAILY NOTES & BUTTON FIXES --- */

.symptom-intro {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
  display: none;
}

.symptom-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0px;
  border-radius: 12px;
}

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

.symptom-title {
  font-size: 14px;
  font-weight:400;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.symptom-title svg{
  height: 16px;
}

.severity-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: var(--border-color);
  color: var(--text-muted, #64748b);
  transition: background-color 0.2s, color 0.2s;
}

/* Active highlight when rating > 0 */
.severity-badge.active {
  color: white;
}

.severity-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px; 
  background: #e2e8f0; /* Soft track background */
  border-radius: 99px;
  border: none;
  outline: none;
  cursor: pointer;
}
/* Ensures the label sits above the textarea cleanly */
.symptom-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.symptom-section-header{
  display: flex;
  justify-content: space-between;
}
.view-more{
  font-size: 14px;
  color: var(--text-2);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 1px;
}

/* Full-width, styled textarea */
#symptom-notes {
  width: 100%;
  box-sizing: border-box; /* Prevents overflow */
  padding: 12px;
  border-radius: 12px;
  border: 0px solid var(--border-color, #e2e8f0);
  background-color: var(--border-color);
  font-family: inherit;
  font-size: 16px;
  color: var(--text-main);
  resize: vertical;
  outline: none;
  transition: border-color 0.4s, background-color 0.2s;
}
#symptom-notes textarea{
  color: var(--text-main);

}

#symptom-notes:focus {
  background-color: #eef0f2e8;
}



/* Texture Grid (Scrolls horizontally on very small screens, wraps nicely) */
.texture-selector-grid {
  margin: 14px 0px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.texture-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background-color: #f2f5f700;
  border-radius: 18px;
  width: 60px;
  padding: 8px 0px;

}
.add-tex-btn {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background-color: #e2e3e5;

  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2); /* Default SVG icon color */
  transition: all 0.2s ease;
}
.texture-checkbox {
  display: none; /* Hide standard input box */
}

/* Default Empty Tile Box */
.tile-box {
  width: 56px;
  height: 50px;
  border-radius:16px;
  background-color: #fbcbe7;

  display: flex;
  align-items: center;
  justify-content: center;
  color: #913e86; /* Default SVG icon color */
  transition: all 0.2s ease;
}
.tile-box svg{
  height: 34px;
  width: auto;
}


/* Label Below Box */
.tile-label {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2); /* Default light gray text */
  transition: color 0.2s ease;
  text-align: center;
}


/* Active Selection Feedback: Border highlight & pop animation */
.color-checkbox:checked + .color-box {
  border: 6px solid var(--true-blue);
}

/* Checkmark indicator inside active color box */
.color-checkbox:checked + .color-box::after {
  content: "✓";
  color: var(--feat-text);
  font-size: 1.3rem;
  font-weight: 800;
}

/* Darken label text when selected */
.color-checkbox:checked ~ .tile-label {
  color: var(--text-main);
  font-weight: 600;
}

/* --- SELECTED / CHECKED STATE --- */

/* Active Box Fill (Pinkish Red Accent) */
.texture-checkbox:checked + .tile-box {
  background-color: #f249ba; /* Matches your active accent red/pink */
  border-color: var(--true-blue);
  color: white;            /* SVG turns crisp white */
}

/* Darkened Label Text when Selected */
.texture-checkbox:checked ~ .tile-label {
  color: var(--text-main);            /* Dark prominent text */
  font-weight: 600;
}
/* Custom Symptom Creation Row */
.add-custom-symptom-group {
  display: flex;
  gap: 8px;
  margin: 1rem 0 0rem 0;
  
}



.custom-symptom-input {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  background-color: #f1f3f5d4;
  transition: ease-in-out 0.2s;
}

.custom-symptom-input:focus {
  border-color: #f249ba;
  background-color: #ffffff;
}



.swatch-white      { background-color: #f7f5f2; }
.swatch-clear      { background-color: #dae0e18f; }
.swatch-cream      { background-color: #dedaca; }
.swatch-yellow     { background-color: #eee8bddd; }
.swatch-grey       { background-color: #b6b4b0; }
.swatch-pale       { background-color: #d8dccf; }




