:root {
  --font-text: Inter, ui-sans-serif, system-ui;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Center container */
.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(180deg, #e0e5ec 0%, #f8f9fa 100%);
  font-family: "Inter", sans-serif;
}

/* Light iOS-style panel */
.main--section {
  background: rgba(157, 33, 99, 0.67);
  backdrop-filter: blur(16px) saturate(180%); /* iOS blur + saturation */
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  width: 40rem;
  height: 8rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  /* align-items: center; */

  border-radius: 20px;
  border: 1px solid rgba(65, 61, 61, 0.085); /* soft white border */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* subtle shadow */
  padding: 2rem;
  color: #1c1c1e; /* dark text for contrast */
}
/* input */
.main-header-section-input {
  margin: 0.5rem 2rem;
  width: 10rem;
  height: 2rem;
  padding: 12px 16px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(255, 255, 255, 0.552);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: 15px;
  color: #fff;

  outline: none;
  transition: 0.7s ease-in;
}
.main-header-section-input.default-text {
  color: rgba(255, 255, 255, 0.55);
}

.main-header-section-input::placeholder {
  /* color: #aaa; */
  color: rgba(255, 255, 255, 0.55);
}
.main-header-section-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
/* .main-header-section-input:hover {
    background: rgba(255, 114, 114, 0.179);
    } */
.main-header-section-input {
  height: 2.6rem;
  padding: 0 16px;
  line-height: 2.6rem;
}

/* add-button */
.main-header-sections-add-btn {
  margin: 0.5rem 2rem;
  width: 5rem;
  height: 2.5rem;
  font-family: var(--font-text);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.484);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  color: #fff;
  font-weight: 500;
  font-size: 14px;

  cursor: pointer;
  transition: 0.25s ease;
}

.main-header-sections-add-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.main-header-sections-add-btn:active {
  scale: 0.96;
  background: rgba(255, 255, 255, 0.28);
}

/* Remove-button */

.main-header-sections-remove-btn {
  margin: 0.5rem 2rem;
  width: 5rem;
  height: 2.5rem;
  font-family: var(--font-text);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.484);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  color: #fff;
  font-weight: 500;
  font-size: 14px;

  cursor: pointer;
  transition: 0.25s ease;
}

.main-header-sections-remove-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.main-header-sections-remove-btn:active {
  scale: 0.96;
  background: rgba(255, 255, 255, 0.28);
}

/* Check section */
.check-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  gap: 2rem; /* space between checkboxes */

  background: rgba(195, 101, 170, 0.53);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);

  width: 40rem;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  color: #ffffff;
}

/* Wrapper for individual checkbox + label */
.checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem; /* space between checkbox and label */
  font-size: 1rem;
  cursor: pointer;
  /* opacity: 0; */
}

/* Optional: make checkboxes iOS style */
.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #4fa1ff; /* iOS blue */
  border-radius: 6px;
  cursor: pointer;
}

/* textbox checkArea */
.checkbox-checkarea {
  width: 100%; /* full width of container */
  padding: 12px 16px;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  background: rgba(255, 255, 255, 0.3); /* translucent glass */
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);

  font-size: 15px;
  color: #1c1c1e; /* dark text for readability */
  font-family: var(--font-text);
  resize: vertical; /* allow vertical resizing only */

  outline: none;
  transition: 0.3s ease;
}

/* Focus effect */
.checkbox-checkarea:focus {
  border-color: rgba(79, 161, 255, 0.8); /* iOS blue focus */
  box-shadow: 0 0 12px rgba(79, 161, 255, 0.25);
  background: rgba(255, 255, 255, 0.45);
}

/* Placeholder text */
.checkbox-checkarea::placeholder {
  color: rgba(28, 28, 30, 0.5);
  font-style: italic;
}
