@import "variable.css";

.membership-btn {
  margin-top: 2.5rem;
}
.membership-btn span {
  color: var(--gray-9);
  font-size: 0.875rem;
}

.membership-btn a {
  font-size: 14px;
}
.split-line {
  height: 50%;
  border-right: 2px solid #ddd;
}

.container {
  /* padding: 2.75rem 0 2.125rem 0; */
  padding-bottom: 2.125rem;
  height: 100svh;
}
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.5rem;
  position: relative;
  border-bottom: 1px solid #ddd;
  background: var(--color-bg);
  padding-top: 2.5rem;
}
.header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-nav-title);
}
.btn-prev {
  position: absolute;
  left: 0.75rem;
}
.content-container {
  padding: 0 1.25rem;
  height: calc(100dvh - 5.5rem); /* 헤더 5.5rem */
  overflow: auto;
  /* border: 1px solid black; */
}
.nav-content-container {
  padding: 0 1.25rem;
  height: calc(100dvh -  (5.5rem + 7.5rem)); /* 헤더 5.5rem + 하단 nav 110px */
  overflow: auto;
  /* border: 1px solid black; */
}

.content-title {
  font-size: 1.5rem;
  color: var(--gray-3);
}
.content-title-desc {
  font-size: 0.75rem;
  color: var(--gray-9);
}
.whole-agree {
  padding: 0.75rem;
  background: var(--content-bg);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-check-wrapper:not(:last-of-type) {
  border-bottom: 1px solid #eee;
}
.service-check-wrapper {
  padding: 0 0.75rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-check-list {
  display: flex;
  gap: 0.5rem;
}
.service-list-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.service-list-group span:first-child {
  color: var(--color-title);
}
.service-list-group span:last-child {
  font-size: 0.75rem;
  color: var(--color-desc);
}

.btn-terms {
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  padding: 12px;
}

.form-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.form-wrapper-type02 {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.form-title {
  color: var(--color-title);
  font-weight: bold;
  position: relative;
}

.required::after {
  content: "";
  display: block;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 4px;
  background: var(--color-danger);
  position: absolute;
  top: 0;
  right: -0.75rem;
}
.confirmed,
.error {
  font-size: 0.75rem;
}
.confirmed {
  color: var(--color-success);
}
.error {
  color: var(--color-danger);
}
.form-desc {
  font-size: 0.75rem;
  color: var(--color-desc);
}
.btn-wmin {
  min-width: 5rem;
}

.input-error {
  background: var(--input-error-bg);
  border: 1px solid var(--input-error-border);
  color: var(--input-error-text);
}
.input-error::placeholder {
  color: var(--input-error-text);
}

.qr-title {
  font-weight: bold;
}
.qr-desc {
  color: var(--color-desc);
}
.warning-text {
  font-size: 12px;
  color: var(--color-danger);
}
.bluetooth-img {
  width: 230px;
  height: 230px;
}
.bluetooth-title {
  color: var(--color-title);
  font-size: 20px;
}
.bluetooth-desc {
  color: var(--color-desc);
  padding-top: 8px;
}
.connected-desc {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-top: 8px;
  padding: 6px 8px;
  display: inline-block;
  border-radius: 4px;
  color: var(--gray-6);
}
.smart-img {
  transform: scale(0.8);
}

.device-list {
  cursor: pointer;
}
.device-list.selected {
  background: var(--input-checked-bg);
  border: 1px solid var(--input-checked-border);
}
.device-list.selected svg > path {
  stroke: var(--input-checked-border);
}

.target-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: all 0.3s ease;
}
nav ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  gap: 0.25rem;
  height: 7.5rem;
  background: var(--gray-f9);
  border-top: 1px solid var(--gray-e);
}
nav ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0.25rem;
  gap: 6px;
  flex: 1;
  height: 100%;
  position: relative;
}
nav ul li a {
  color: var(--gray-a);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  position: relative;
}
nav ul li a span {
  color: var(--gray-6);
}

/* a.active일 때 부모 li에도 동일한 카드 배경을 표시 */
nav ul li:has(> a.active) {
  background: var(--input-checked-bg);
  /* border: 1px solid var(--input-checked-border); */
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

nav ul li a svg {
  stroke: var(--gray-a);
}

nav ul li a.active svg {
  stroke: var(--input-checked-border);
}
nav ul li a.active span {
  color: var(--input-checked-border);
}
.user-info-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.greeting {
  font-size: 20px;
}
.greeting-desc {
  font-size: 12px;
  color: var(--color-desc);
  padding-top: 4px;
}
.user-state {
  padding: 6px 12px;
  background: var(--color-success-light);
  color: var(--color-success);
  border-radius: 100vw;
}

.content-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-title-group h3 {
  color: var(--color-title);
}
.today-date {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--gray-d);
  background: var(--white);
  border-radius: 4px;
  color: var(--gray-6);
}
.today-info-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 12px;
}
.today-info-wrapper li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.today-info-wrapper li:not(:last-of-type) {
  border-right: 1px solid var(--gray-d);
}
.today-info-text {
  display: contents;
  align-items: center;
  gap: 0.375rem;
}

.pill-taken h3 {
  font-size: 16px;
  color: var(--color-title);
}

.section-container,
.section-gray-container {
  padding: 1.25rem;
  background: var(--section-bg);
  border: 1px solid var(--section-border);
  border-radius: 0.5rem;
}
.flex-type01 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.flex-type02 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-gray-container {
  background: var(--section-gray-bg);
  border: 1px solid var(--section-gray-border);
}

.filter-chip {
  padding: 4px 8px;
  background: var(--gray-e);
  border-radius: 4px;
  color: var(--gray-6);
  font-size: 14px;
}

.state-pill-taken {
  color: var(--color-success);
}
.state-pill-scheduled {
  color: var(--gray-9);
}
.state-pill-missed {
  color: var(--color-danger);
}
.time-day {
  font-size: 20px;
}
.state-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-form-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-btn-container button {
  flex: 1;
}
.bottom-btn-container.noscroll {
  margin-bottom: 6.25rem;
}
.record-list {
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-d);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-list li:first-of-type {
  margin-right: auto;
}
.update-state {
  display: flex;
  flex-direction: column;
}
.update-state span {
  font-size: 14px;
}
.service-pop01 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
}
.lightbox {
  width: 100%;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}
.service-pop01,
.service-pop02,
.service-pop03,
.service-pop04 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 400px;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  display: none;
  /* overflow: hidden; */
}
.pop-content {
  padding: 20px;
  background: var(--gray-f9);
  border-radius: 6px;
  overflow: auto;
  font-size: 14px;
  line-height: 160%;
  height: 90%;
}
.btn-close {
  position: absolute;
  top: -40px;
  right: 0;
}

.view-container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.view {
  width: 80%;
  height: 220px;
  background: var(--gray-e);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.view span {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
}

.view .tl {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
  border-top-left-radius: 1.25rem;
  border-color: var(--gray-a);
}

.view .tr {
  top: 0;
  right: 0;
  border-top: 2px solid;
  border-right: 2px solid;
  border-top-right-radius: 1.25rem;
  border-color: var(--gray-a);
}

.view .bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-bottom-left-radius: 1.25rem;
  border-color: var(--gray-a);
}

.view .br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-bottom-right-radius: 1.25rem;
  border-color: var(--gray-a);
}
.date-form {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.date-form input {
  width: 100%;
}
.date-form span {
  font-size: 14px;
  color: var(--color-title);
}

.overlay-container {
  position: relative;
}
.overlay-container .form-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(1px);
}