:root {
  --primary: #2525b1;
  --primary-light: #4545d1;
  --primary-dark: #1a1a8c;
  --background: #121212;
  --surface: #1e1e1e;
  --surface-light: #2d2d2d;
  --text: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #ff5252;
  --input-bg: rgba(255, 255, 255, 0.08);
  --unit-bg: rgba(255, 255, 255, 0.05);
  --checkbox-unchecked: rgb(186, 184, 243);
  --checkbox-checked: #2525b1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #212121;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #000000;
  padding: 10px 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header button {
  background-color: transparent;
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
}

.header button:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-top: 3px solid white;
  border-left: 3px solid white;
  transform: rotate(-45deg);
}

.header button:last-child:before {
  transform: rotate(135deg);
}

.logo {
  text-align: center;
}

.logo span {
  font-size: 24px;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

.tagline {
  font-size: 14px;
  color: var(--primary-light);
  margin-top: -5px;
}

main {
  padding-bottom: 50px;
}

h1 {
  margin-bottom: 30px;
  color: rgba(132, 136, 139, 0.66);
  font-weight: 600;
  font-size: 28px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text);
  font-size: 18px;
  transition: all 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.input-group {
  display: flex;
  align-items: center;
}

.input-group input {
  border-radius: 8px 0 0 8px;
}

.unit {
  background-color: var(--unit-bg);
  padding: 12px 15px;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-size: 18px;
  min-width: 70px;
  text-align: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  position: relative;
}

.form-check-input {
  position: absolute;
  opacity: 0;
}

.option label {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.option input:checked + label {
  background-color: var(--surface-light);
}

.checkbox-circle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--checkbox-unchecked);
  margin-right: 12px;
  position: relative;
  border: 2px solid white;
}

.option input:checked + label .checkbox-circle {
  background-color: var(--checkbox-checked);
  border: 2px solid rgb(207, 230, 207);
}

.blood-pressure .subtext {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 32px;
}

.btn-next {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-top: 40px;
  transition: background-color 0.3s ease;
}

.btn-next:hover {
  background-color: var(--primary-light);
}

@media (min-width: 768px) {
  .options {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .option {
    flex: 1;
    min-width: 200px;
  }
  
  .blood-pressure .options {
    flex-direction: column;
  }
  
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}

.progress {
  width: 80px;
  height: 80px;
  line-height: 80px;
  background: none;
  margin: 0 auto;
  box-shadow: none;
  position: relative;
}

.progress:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
}

.progress > span {
  width: 50%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 1;
}

.progress .progress-left {
  left: 0;
}

.progress .progress-bar {
  width: 100%;
  height: 100%;
  background: none;
  border-width: 6px;
  border-style: solid;
  position: absolute;
  top: 0;
}

.progress .progress-left .progress-bar {
  left: 100%;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  border-left: 0;
  -webkit-transform-origin: center left;
  transform-origin: center left;
}

.progress .progress-right {
  right: 0;
}

.progress .progress-right .progress-bar {
  left: -100%;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  border-right: 0;
  -webkit-transform-origin: center right;
  transform-origin: center right;
  animation: loading-1 30s linear forwards;
}

.progress .progress-value {
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: var(--surface);
  font-size: 18px;
  color: var(--text);
  line-height: 68px;
  text-align: center;
  position: absolute;
  top: 7.5%;
  left: 7.5%;
}

.progress.green .progress-bar {
  border-color: var(--primary);
}

.progress.green .progress-left .progress-bar {
  animation: loading-1 30s linear forwards 30s;
}

@keyframes loading-1 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
  }
}
:root {
  --primary: #2525b1;
  --primary-light: #4545d1;
  --primary-dark: #1a1a8c;
  --background: #121212;
  --surface: #1e1e1e;
  --surface-light: #2d2d2d;
  --text: #e0e0e0;
  --text-secondary: #a0a0a0;
  --accent: #ff5252;
  --input-bg: rgba(255, 255, 255, 0.08);
  --unit-bg: rgba(255, 255, 255, 0.05);
  --checkbox-unchecked: rgb(186, 184, 243);
  --checkbox-checked: #2525b1;
  --card-bg: #2d2d2d;
  --success: #25B18E;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #212121;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: #000000;
  padding: 10px 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header button {
  background-color: transparent;
  border: none;
  color: white;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
}

.back-button:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-top: 3px solid white;
  border-left: 3px solid white;
  transform: rotate(-45deg);
}

.placeholder-button {
  width: 40px;
  height: 40px;
}

.logo {
  text-align: center;
}

.logo span {
  font-size: 24px;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

.tagline {
  font-size: 14px;
  color: var(--primary-light);
  margin-top: -5px;
}

/* Vitals grid */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.vital-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.vital-card:hover {
  transform: translateY(-5px);
}

.vital-content {
  display: flex;
  padding: 15px;
  align-items: center;
}

.vital-label {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.vital-value {
  flex: 1;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  color: var(--text);
}

.vital-value p:nth-child(2) {
  margin-top: -10px;
}

.vital-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
}

.vital-icon img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.vital-icon .unit {
  font-size: 10px;
  color: var(--text-secondary);
  background: none;
  padding: 0;
}

.text-success {
  color: var(--success) !important;
}

/* Results container */
.results-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  height: 300px;
}

.health-indicators {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.indicator-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.indicator-card:hover {
  transform: translateY(-5px);
}

.indicator-card h3 {
  margin-bottom: 10px;
  font-size: 16px;
  color: var(--text);
}

.indicator-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.indicator-icon img {
  max-width: 80%;
  max-height: 80%;
}

/* Action buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

@media (min-width: 768px) {
  .vitals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .results-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .health-indicators {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .vitals-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .health-indicators {
    grid-template-columns: repeat(3, 1fr);
  }
}