:root {
    --bg-main: #bbd3bc;
    --bg-secondary: #fff9f5;
    --hand-color: #cab8b6;
    --selected: #eae2da;
    --fire-orange: #e96500;
    --accent-primary: #ECAD4E;
    --accent-primary-light: #F4D19B;
    --transition: .75s;
}

body {
    font-family: "Baloo 2", cursive;
    background-color: var(--bg-main);
    margin-bottom: 3%;
}

hero {
    display: block;
    padding-left: 20em;
    padding-right: 20em;
}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-left: 3em;
    margin-right: 3em;
    margin-top: 1em;
    padding-left: 1em;
    padding-right: 1em;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
}

a {
  text-decoration: none;
  color: inherit;
}

.nourisync-icon{
    aspect-ratio: 1.2;
    width: 3rem;
    vertical-align: middle;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  gap: 50rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5%;
  padding-left: 60em;
}

.nav-links a {
  text-decoration: none;
  color: #3c3c3c;
  font-weight: 500;
  font-size: large;
}

.nav-link {
  text-decoration: none;
  color: #333;
  padding: .5rem 1rem;
  border-radius: 30px;
  background-color: var(--bg-secondary);
  flex-wrap: nowrap;
}

.nav-link:hover {
  text-decoration: none;
  background-color: var(--selected);
}

.welcome-info {
    margin-top: 50px;
    text-align: center;
    flex-direction: row;
    justify-content: space-between;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.welcome-left {
    flex: 2;
    transform: translateY(-27px);
    padding-left: 0.5em;
    padding-right: 5em;
}

.welcome-left > h1 {
    font-size: 3.5em;
    text-align: left;
    line-height: 1.3;
}

.person-icon {
  margin-top: 20px; 
}

  .nav-container {
    position: relative;
    display: inline-block;
  }

  .info-box {
    display: none;
    position: absolute;
    top: 120%; 
    left: 10%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    color: #333;
    padding: 10px 15px;
    border: 1px solid lightgrey;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 100;
  }

  .nav-container:hover .info-box {
    display: block;
  }

  .nav-link {
    text-decoration: none;
    color: inherit;
  }

.log-buttons {
    display: flex;
    background-color: var(--bg-secondary);
    border-color: #cdcdcd;
    border-width: 2px;
    border-style: solid;
    padding: .7rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    border-radius: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    transform: translateY(-16px);
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
}

.log-button {
  background-color: var(--hand-color);
  font-family: "Baloo 2", cursive;
  color: #000000;
  font-size: 1rem;
  align-items: center;
  gap: 0.5rem;
  padding: 12px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease;
  vertical-align: top;
}

.log-button:hover {
  background-color: #9b8b8a;
}

.log-button-icon {
  width: 1.5rem;
  height: auto;
  margin-right: .5rem;
  vertical-align: bottom;
}

.streak-info {
    flex: 1.5;
    /* background: var(--bg-secondary); */
    background: var(--bg-secondary);
    border-color: #cdcdcd;
    border-width: 2px;
    border-style: solid;
    order: 1px solid #e0e5ec;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1rem;
    padding-bottom: 2.5rem;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
}

.streak-info.inactive {
    border-color: #9e9e9e;
}

.streak-info.inactive .streak-info-top {
    color: #9e9e9e;
}

.streak-info.inactive .fire-streak-image {
    filter: grayscale(100%);
}

.streak-info-top {
    font-size: 5rem;
    font-weight: bold;
    color: var(--fire-orange);
    gap: 0px;
}

.fire-streak-image {
    aspect-ratio: 1;
    width: 5rem;
    vertical-align: middle;
}

.streak-info-top b {
  vertical-align: middle;
    margin-left: -1rem;
}

.streak-info-bottom {
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
    padding-top: 0px;
}

.streak-days {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.day {
  background-color: #cab8b6;
  color: #333;
  margin-top: 4px;
  font-weight: bold;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 30px;
  text-align: center;
}

.day.completed {
  background-color: var(--fire-orange);
  color: var(--bg-secondary);
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.log {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  padding-left: 1rem;
  padding-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  border: 1px solid #e3e7ec;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.10), 0 1.5px 4px 0 rgba(0,0,0,0.08);
}

.log-top-info h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.risk-indicator {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.risk-indicator.low-risk {
  background: #e8f5e9;
  color: #2e7d32;
}

.risk-indicator.medium-risk {
  background: #fff3e0;
  color: #ef6c00;
}

.risk-indicator.high-risk {
  background: #ffebee;
  /* border-color: c62828; */
  color: #c62828;
}

.log-bottom-info p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #333;
}

.collapsable {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.collapsable svg {
  transition: transform 0.3s ease;
}

.log-content {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #333;
}

.log-content h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.log-plan {
  padding-left: 1.25rem;
}

.loading-message,
.no-logs-message,
.error-message {
  text-align: center;
  font-size: 0.95rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.form-page.intro-block {
    flex: 1.5;
    background: var(--bg-secondary);
    border-color: #cdcdcd;
    border-width: 2px;
    border-style: solid;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin: 2rem;
    margin-left: 20%;
    margin-right: 20%;
}

.home-button {
    width: 100px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-page.intro-block > h2 {
    font-size: 3rem;
    margin-top: -.3rem;
    margin-bottom: 1rem;
}

.form-page.intro-block > p {
    margin-top: -1rem;
    font-size: 1.2rem;
}

.form-intro-image {
  width: 70% !important;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.questionnaire-begin-button,
.patient-done-button,
.form-done-button {
  background-color: #0EAA58;     
  font-family: 'Baloo 2', cursive;
  color: white;                 
  font-size: 1.5rem;       
  padding: 1rem 2.5rem;          
  border: none;
  border-radius: 20px;       
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  
  transition: background-color 0.3s ease;
}

.questionnaire-begin-button:hover,
.patient-done-button:hover,
.form-done-button:hover {
  background-color: #0e984e; 
}

.home-button {
  position: absolute;
  top: 45px;
  left: 320px;
  width: 40px; 
  height: auto;
  cursor: pointer;
  box-shadow: none;
}

.questionnaire-form-caregiver input[type="range"] {
    width: 30%;
    height: 8px;
    border-radius: 5px;
    background: gray; 
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.questionnaire-form-caregiver input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #666;
    cursor: pointer;
}

.questionnaire-form-caregiver.form-page,
.questionnaire-form-caregiver {
    flex: 1.5;
    /* background: var(--bg-secondary); */
    background: var(--bg-secondary);
    border-color: #cdcdcd;
    border-width: 2px;
    border-style: solid;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 2rem;
    margin: 2rem;
    margin-left: 20%;
    margin-right: 20%;
}


.questionnaire-form-caregiver.form-page > h1,
.questionnaire-form-caregiver > h1 {
  text-align: center;
  margin-top: -.3em;
  font-size: 2.5em;
  text-decoration: underline;
}

.scale-question > p {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.2em;
}

.scale-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.open-question > label {
  font-weight: bold;
  font-size: 1.2em;
}

textarea {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fefefe;
  resize: vertical;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.slider-question > label {
  font-weight: bold;
  font-size: 1.2em;
}

/* emotion stuff */
.emotions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emotions li {
    background-color: #f1f1f7;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #675fb0;
    white-space: nowrap;
}

