@charset "UTF-8";
/* layout */
html,
body {
  width: 100%;
  height: 100%;
}

body.fixed {
  overflow-y: hidden;
}

#wrap {
  width: 100%;
  height: 100%;
}

.mobile_wrap {
  width: 100%;
  min-height: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgb(0, 0, 0, 0.08);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 64px;
  z-index: 101;
  /* 3-4: 헤더를 불투명 흰색으로 채워 로고의 흰 배경 박스가 헤더에 녹아들도록(흰 사각형 노출 방지).
     불투명 배경에선 backdrop blur가 무의미하므로 제거. (다크모드 로고 반전은 투명 로고 자산 확보 후 별도 처리) */
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(16, 40, 34, .05), 0 6px 18px rgba(16, 40, 34, .04);
  transition: 0.35s;
}

.header__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 18px;
  width: 100%;
  height: 100%;
}

.header__inner.space-between {
  justify-content: space-between;
}

.header .btn_back {
  display: inline-block;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: url(../_img/icon/icon_back.svg) no-repeat center center / contain;
}

.header .header_title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}
.drug-legend {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  list-style: none;
  padding: 6px;
  margin: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.drug-legend-item {
  display: flex;
  align-items: center;
  font-size: 11px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.drug-legend-item:last-child {
  margin-bottom: 0;
}

.drug-legend-line {
  display: inline-block;
  width: 10px;
  height: 2px;
  margin-right: 5px;
}

.drug-legend-line.increase {
  background: #4CAF50;
}

.drug-legend-line.decrease {
  background: linear-gradient(-90deg, #DA3F42 0%, #E55254 55.04%);
}

.drug-legend-line.unknown {
  background: linear-gradient(-90deg, #D7B905 0%, #DBC535 55.04%)
}


.header .header_title.modify {
  font-size: 21px;
}

.header .header_logo {
  display: inline-block;
  width: 100px;
  height: 42px;
}

.header .header_logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header .right_btns {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.medicine_list_del_btn,
.header .right_btns > * {
  display: inline-block;
  width: 24px;
  height: 24px;
}
.medicine_list_btn_area {
  display: flex !important;
  width: 70px !important;
  align-items: center;
}
.medicine_list_btn_area p {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #303030;
}

.header .btn_modify {
  background: url(../_img/icon/icon_header_modify.svg) no-repeat center center / contain;
}

.header .btn_delete {
  background: url(../_img/icon/icon_header_delete.svg) no-repeat center center / contain;
}

.header .btn_delete.active {
  background-image: url(../_img/icon/icon_header_delete_on.svg);
}
.main {
  padding: 0 18px;
  padding-top: 64px;
  min-height: calc(100dvh - 80px);
  padding-bottom : 10px
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 80px;
  border-radius: 20px 20px 0 0;
  padding-top: 6px;
  border-top: 1px solid #E5E5EA;
  background-color: #fff;
}

.footer_navigation {
  padding: 0 32px;
  display: flex;
  align-items: center;
  width: 100%;
  height: 41px;
}

.footer_navigation .navi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 5px;
  width: 100%;
  height: 100%;
}

.footer_navigation .navi .icon {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.footer_navigation .navi .icon.icon--home {
  background: url(../_img/icon/icon_navi_01.svg) no-repeat center center / contain;
}

.footer_navigation .navi .icon.icon--medicine {
  background: url(../_img/icon/icon_navi_02.svg) no-repeat center center / contain;
}

.footer_navigation .navi .icon.icon--history {
  background: url(../_img/icon/icon_navi_03.svg) no-repeat center center / contain;
}

.footer_navigation .navi .icon.icon--setting {
  background: url(../_img/icon/icon_navi_04.svg) no-repeat center center / contain;
}

.footer_navigation .navi.active .icon.icon--home {
  background-image: url(../_img/icon/icon_navi_01_on.svg);
}

.footer_navigation .navi.active .icon.icon--medicine {
  background-image: url(../_img/icon/icon_navi_02_on.svg);
}

.footer_navigation .navi.active .icon.icon--history {
  background-image: url(../_img/icon/icon_navi_03_on.svg);
}

.footer_navigation .navi.active .icon.icon--setting {
  background-image: url(../_img/icon/icon_navi_04_on.svg);
}

.footer_navigation .navi span.navi_menu {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #848487;
}

.footer_navigation .navi.active span.navi_menu {
  color: var(--color-sub);
}

/* Fixed Bottom */
.fixed_btn {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 80px;
  padding: 0 18px;
}

.fixed_btn.isBottom {
  bottom: 60px;
}

/* Form */
.input--typeA {
  margin-bottom: 28px;
}

.input--typeA label.input_label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #303030;
}

.input--typeA .info_txt {
  margin-top: 6px;
}

.input--typeB {
  margin-bottom: 35px;
}

.input--typeB label.input_label {
  display: block;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}

.radio_box {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 22px;
  margin-bottom: 28px;
}

.radio_box .radio--typeA {
  flex: 1;
}

.radio_box_for_search {
  display: flex;
  gap: 12px;
  margin: 5px 0;
  width: 100%;
  justify-content: flex-end;
}


.radio--red input[type="radio"]:checked ~ em {
  background: url(../_img/icon/icon_radio_red_on.svg) no-repeat center center / contain !important;
}

.radio--orange input[type="radio"]:checked ~ em {
  background: url(../_img/icon/icon_radio_orange_on.svg) no-repeat center center / contain !important;
}

.radio--grey input[type="radio"]:checked ~ em {
  background: url(../_img/icon/icon_radio_grey_on.svg) no-repeat center center / contain !important;
}

/* 툴팁 아이콘 */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #666;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
}

/* 툴팁 내용 (기본 숨김) */
.tooltip-content {
  position: absolute;
  left: 0;
  top: 25px;
  min-width: 200px;
  padding: 10px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 툴팁 화살표 */
.tooltip-content::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

/* hover 시 툴팁 표시 */
.tooltip-wrapper:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* 툴팁 내용 스타일 */
.tooltip-content p {
  margin: 5px 0;
}

.tooltip-content strong {
  color: #fff;
  margin-right: 5px;
}



/* 휴대폰 인증 */
.vertify_tel .vertify_input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.vertify_tel .vertify_input .input {
  flex: 1;
  position: relative;
}

.vertify_tel .vertify_input .btn {
  width: 101px;
  font-size: 14px;
  flex-shrink: 0;
}

.vertify_tel .vertify_input .btn:disabled {
  background-color: var(--color-main-soft);
  color: var(--color-main);
}

.vertify_tel .vertify_input .input .remain_time {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-typo);
}

/* =====================================================================
   프리미엄 폴리시 (전역 디자인 시스템)
   ===================================================================== */
.footer {
  box-shadow: 0 -2px 20px rgba(16, 40, 34, .05);
}
.footer_navigation .navi {
  position: relative;
  transition: transform .15s var(--ease-premium);
}
.footer_navigation .navi:active {
  transform: scale(.94);
}
/* 활성 탭 상단 인디케이터 바 */
.footer_navigation .navi.active::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-main);
}
.footer_navigation .navi.active .icon {
  filter: drop-shadow(0 3px 7px rgba(14, 124, 102, .28));
}