@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --font-default: "Pretendard Variable", sans-serif;

  /* 배경/텍스트 */
  --background: #ffffff;
  --foreground: #222222;

  /* 메인 컬러 - 핑크톤 */
  --color-primary: #ec89a3; /* 로고 색상 */
  --color-primary-dark: #d26f89; /* 버튼 클릭 or 진한 포인트 */
  --color-secondary: #fff3f6; /* 연한 배경 (카드, 선택 영역 등) */

  /* 강조 색상 */
  --color-accent: #f4a4b7; /* hover 또는 강조 */

  /* 텍스트 */
  --color-text: #222222;
  --color-text-muted-light: #f5c9d4; /* 연핑크 강조용 */

  /* 테두리/배경 */
  --color-border: #f3cbd7;
  --color-white: #ffffff;
}

body {
  background: var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-default);
}

input[readonly],
input[disabled] {
  background-color: #e6e6e6; /* 밝은 회색 (Tailwind의 bg-gray-100과 유사) */
  color: #1b1b1b; /* 중간 회색 텍스트 (Tailwind의 text-gray-500) */
  border: 1px solid #d1d5db; /* 연한 회색 테두리 */
  cursor: not-allowed;
}

.content {
  background: var(--background);
}

.navigation {
  background: var(--color-primary);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  color: var(--color-white);
}
.navigation li {
  padding: 12px 0px;
  transition: background-color 0.2s ease-in-out;
  cursor: pointer;
}

/* .navigation li:hover {
  background-color: var(--color-text-muted-light);
  cursor: pointer;
} */

.search-form {
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  margin-bottom: 12px;
  padding: 12px;
}

#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--color-primary);
  z-index: 9999;
  transition: width 0.3s ease;
}
.customBottomsheet {
  z-index: 1000 !important;
}
.customBottomsheet .sheet__wrapper .controls {
  border-bottom: 1px solid #f6f6f6;
}

.customBottomsheet .content {
  text-align: left;
}

.customBottomsheet._modal .sheet__wrapper {
  width: 100%;
  /* min-width: 768px;
  max-width: 768px; */
}

/* From Uiverse.io by Yaya12085 */
.radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.5rem;
  background-color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: 300px;
  font-size: 14px;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgba(51, 65, 85, 1);
  transition: all 0.15s ease-in-out;
}

.radio-inputs .radio input:checked + .name {
  background-color: #ec89a3;
  font-weight: 600;
  color: #fff;
}

.active-tab {
  color: #000;
  font-weight: 600;
}

.badge {
  background: var(--color-primary);
  color: #fff;
}

.border-pink {
  border-top: 2px solid var(--color-primary);
  padding-top: 12px;
}

.checkbox-wrapper-46 input[type="checkbox"] {
  display: none;
  visibility: hidden;
}

.checkbox-wrapper-46 .cbx {
  margin: auto;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
.checkbox-wrapper-46 .cbx span {
  display: inline-block;
  vertical-align: middle;
  transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-46 .cbx span:first-child {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  transform: scale(1);
  vertical-align: middle;
  border: 1px solid #9098a9;
  transition: all 0.2s ease;
}
.checkbox-wrapper-46 .cbx span:first-child svg {
  position: absolute;
  top: 3px;
  left: 2px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16px;
  stroke-dashoffset: 16px;
  transition: all 0.3s ease;
  transition-delay: 0.1s;
  transform: translate3d(0, 0, 0);
}
.checkbox-wrapper-46 .cbx span:first-child:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #506eec;
  display: block;
  transform: scale(0);
  opacity: 1;
  border-radius: 50%;
}
.checkbox-wrapper-46 .cbx span:last-child {
  padding-left: 8px;
}
.checkbox-wrapper-46 .cbx:hover span:first-child {
  border-color: #506eec;
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
  background: #506eec;
  border-color: #506eec;
  animation: wave-46 0.4s ease;
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
  stroke-dashoffset: 0;
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child:before {
  transform: scale(3.5);
  opacity: 0;
  transition: all 0.6s ease;
}

@keyframes wave-46 {
  50% {
    transform: scale(0.9);
  }
}

input,
select,
.sm-button,
textarea {
  border: 1px solid rgb(237, 237, 237);
}

swiper-container {
  width: 100%;
  height: 320px !important;
  min-height: 320px;
}

.active > p,
.active > svg {
  color: var(--color-primary);
  font-weight: 600;
}

.primary-button {
  background-image: linear-gradient(
    to right,
    #3b82f6,
    #60a5fa
  ); /* from-blue-500 to-blue-400 */
  color: white; /* text-white */
  padding-top: 0.75rem; /* py-3 */
  padding-bottom: 0.75rem;
  border-radius: 0.75rem; /* rounded-xl */
  font-weight: 600; /* font-semibold */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1); /* shadow */
  transition-property: all; /* transition-all */
  transition-duration: 200ms; /* duration-200 */
  cursor: pointer; /* cursor-pointer */
}

.primary-button:hover {
  background-image: linear-gradient(
    to right,
    #2563eb,
    #3b82f6
  ); /* from-blue-600 to-blue-500 */
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

swiper-container::part(bullet-active) {
  background-color: var(--color-primary);
}

.inputGroup {
  font-family: "Segoe UI", sans-serif;
  margin: 1em 0 1em 0;
  max-width: 190px;
  position: relative;
}

.inputGroup input {
  font-size: 100%;
  padding: 0.8em;
  outline: none;
  border: 1px solid #f5f5f5;
  background-color: transparent;
  border-radius: 6px;
  width: 100%;
}

.inputGroup label {
  font-size: 100%;
  position: absolute;
  left: 0;
  padding: 0.8em;
  margin-left: 0.5em;
  pointer-events: none;
  transition: all 0.3s ease;
  color: rgb(100, 100, 100);
}

.inputGroup :is(input:focus, input:valid) ~ label {
  transform: translateY(-50%) scale(0.9);
  margin: 0em;
  margin-left: 1.3em;
  padding: 0.4em;
  background-color: #fff;
}

.inputGroup :is(input:focus, input:valid) {
  border-color: oklch(62.3% 0.214 259.815);
  border-width: 2px;
}

.active > span {
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
  border-color: pink;
  color: #000 !important;
}

.check-active {
  color: oklch(54.6% 0.245 262.881) !important;
  font-weight: 700;
}

.check-active::after {
  content: " ✔";
  margin-right: 0.25rem;
}

.custum-file-upload {
  height: 100px;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: space-between;
  gap: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cacaca;
  background-color: rgba(255, 255, 255, 1);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0px 48px 35px -48px rgba(0, 0, 0, 0.1);
}

.custum-file-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload .icon svg {
  height: 35px;
  fill: rgba(75, 85, 99, 1);
}

.custum-file-upload .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custum-file-upload .text span {
  font-weight: 400;
  color: rgba(75, 85, 99, 1);
}

.custum-file-upload input {
  display: none;
}

.image-preview,
.image-preview > img {
  position: relative;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.active-sub-menu {
  color: #4040bb !important;
  text-decoration: underline !important;
  text-underline-offset: 7px !important;
}

.image-preview2,
.image-preview2 > img {
  position: relative;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.btn-danger {
  background-color: #ef4444; /* Tailwind의 red-500 */
  color: white;
  padding: 0.75rem 1rem; /* py-3 */
  border-radius: 0.75rem; /* rounded-xl */
  font-weight: 600; /* font-semibold */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* shadow */
  transition: all 0.2s ease-in-out; /* transition-all duration-200 */
  cursor: pointer;
}

.btn-danger:hover {
  background-color: #dc2626; /* red-600 */
}

.btn-danger:active {
  background-color: #b91c1c; /* red-700 */
}
.btn {
  background-color: #ec89a3;
  cursor: pointer;
  transition: all ease-in-out 0.2s;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  top: 12px;
  right: 15px;
  font-size: 14px;
}

.btn:hover {
  background-color: #ffb3c7;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-danger {
  background-color: #ffe4e6; /* bg-red-100 */
  color: #ef4444; /* text-red-500 */
}

.badge-success {
  background-color: #d1fae5; /* bg-green-100 */
  color: #10b981; /* text-green-600 */
}

.badge-warning {
  background-color: #fef9c3; /* bg-yellow-100 */
  color: #eab308; /* text-yellow-600 */
}

.badge-info {
  background-color: #5557cb; /* bg-yellow-100 */
  color: #fdfdfd; /* text-yellow-600 */
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 0.375rem;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus {
  color: #333;
  background-color: #fff;
  border-color: #ff6fb2; /* 진한 핑크 테두리 */
  outline: none;
  box-shadow: 0 0 4px rgba(255, 111, 178, 0.5); /* 더 자연스럽고 얇은 그림자 */
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #fce4ec;
  opacity: 0.6;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #5454fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.heart-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: absolute;
  top: 18px;
  right: 18px;
  cursor: pointer;
  color: #ec89a3;
}

.chat-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: absolute;
  top: 92px;
  right: 18px;
  cursor: pointer;
  color: #42427f;
}

#daterange {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #374151; /* text-gray-700 */
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid #3b82f6; /* 연한 회색 테두리 */
  outline: none;
}
