/* @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSansNeo.css);
* {
  font-family: "Spoqa Han Sans Neo", sans-serif;
} */

/* ✅ Pretendard 폰트 불러오기 */
@import url('https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css');

/* ✅ Noto Sans KR 폰트 불러오기 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ✅ 모든 요소에 폰트 적용 */
* {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}


:root,
:root[data-theme="light"] {
  --text: #2f2c28;
  --link: #ffcc00;
  --button-text: #fff;
  --as-primary: #274690;
  --as-primary-hover: #1f3a78;
  --as-primary-active: #18315f;
  --as-primary-soft: #eef3ff;
  --as-primary-border: #c9d6f2;
  --as-success: #0f766e;
  --as-success-soft: rgba(15, 118, 110, .10);
  --as-warning: #d97706;
  --as-warning-soft: rgba(217, 119, 6, .10);
  --as-danger: #dc2626;
  --as-danger-soft: rgba(220, 38, 38, .10);
  --as-neutral: #64748b;
  --button-primary-background: var(--as-primary);
  --button-primary-hover-background: var(--as-primary-hover);
  --button-warn-background: #f9592c;
  --button-secondary-background: #bcb9b0;
  --ic-button-circle: #ffcc00;
  --input-background: #fff;
  --input-border: #cccac3;
  --input-placeholder: #bcb9b0;
  --input-focus-border: #ffcc00;
  --input-focus-background: #fffdf3;
  --input-error: #e6584e;
  --input-error-border: #e6584e;
  --chip-border: #e3e1dc;
  --chip-text: #2f2c28;
  --chip-green-background: #effaf9;
  --chip-green-text: #79c9c5;
  --chip-green-border: #06aea7;
  --avatar-placeholder: #e3e1dc;
  --stars: #ffcc00;
  --dialog-border: #e3e1dc;
  --dialog-background: #f6f5f3;
  --dialog-info: #e1811b;
  --box-border: #e3e1dc;
  --as-page-bg: #fcfcfc;
  --as-panel-bg: #ffffff;
  --as-card-bg: #f8fafc;
  --as-card-elevated-bg: #ffffff;
  --as-card-border: #e5ebf3;
  --as-card-hover-bg: #ffffff;
  --as-card-hover-border: #cbd5e1;
  --as-card-hover-shadow: 0 16px 34px rgba(15, 23, 42, .10);
  --as-text-main: #111827;
  --as-text-muted: #64748b;
  --as-chip-bg: #eef2f7;
  --as-chip-border: #dbe3ee;
  --as-table-head-bg: #e9edf2;
  --as-table-row-border: #dee2e8;
  --as-table-row-hover-bg: #eef4fb;
  --as-modal-bg: #ffffff;
  --as-input-bg: #ffffff;
  --as-shadow-soft: 0 10px 28px rgba(15, 23, 42, .06);
  --as-sticky-shadow: 6px 0 10px -10px rgba(0, 0, 0, 0.35);
  --as-positive: #dc2626;
  --as-negative: #2563eb;
  --body-background: var(--as-page-bg);
  --main-header-background: var(--as-table-head-bg);
  --main-header-border: var(--as-card-border);
}

:root[data-theme="dark"] {
  --text: #e5e7eb;
  --link: #facc15;
  --button-text: #fff;
  --as-primary: #3b5fa6;
  --as-primary-hover: #31508e;
  --as-primary-active: #263f72;
  --as-primary-soft: rgba(59, 95, 166, .20);
  --as-primary-border: rgba(148, 169, 219, .36);
  --as-success: #2dd4bf;
  --as-success-soft: rgba(45, 212, 191, .13);
  --as-warning: #f59e0b;
  --as-warning-soft: rgba(245, 158, 11, .14);
  --as-danger: #f87171;
  --as-danger-soft: rgba(248, 113, 113, .13);
  --as-neutral: #94a3b8;
  --button-primary-background: var(--as-primary);
  --button-primary-hover-background: var(--as-primary-hover);
  --button-warn-background: #ef4444;
  --button-secondary-background: #475569;
  --ic-button-circle: #334155;
  --input-background: #0f172a;
  --input-border: rgba(148, 163, 184, .32);
  --input-placeholder: #94a3b8;
  --input-focus-border: #60a5fa;
  --input-focus-background: #111827;
  --input-error: #f87171;
  --input-error-border: #f87171;
  --chip-border: rgba(148, 163, 184, .26);
  --chip-text: #e5e7eb;
  --chip-green-background: rgba(45, 212, 191, .16);
  --chip-green-text: #5eead4;
  --chip-green-border: #2dd4bf;
  --avatar-placeholder: #334155;
  --stars: #facc15;
  --dialog-border: rgba(148, 163, 184, .24);
  --dialog-background: #111827;
  --dialog-info: #f59e0b;
  --box-border: rgba(148, 163, 184, .24);
  --as-page-bg: #0f172a;
  --as-panel-bg: #111827;
  --as-card-bg: #161f2e;
  --as-card-elevated-bg: #1b2638;
  --as-card-border: rgba(148, 163, 184, 0.18);
  --as-card-hover-bg: #1d2a3d;
  --as-card-hover-border: rgba(148, 163, 184, 0.34);
  --as-card-hover-shadow: 0 18px 36px rgba(0, 0, 0, .34);
  --as-text-main: #e5e7eb;
  --as-text-muted: #94a3b8;
  --as-chip-bg: rgba(148, 163, 184, 0.14);
  --as-chip-border: rgba(148, 163, 184, 0.22);
  --as-table-head-bg: #1e293b;
  --as-table-row-border: rgba(148, 163, 184, 0.18);
  --as-table-row-hover-bg: #1f2a3a;
  --as-modal-bg: #111827;
  --as-input-bg: #0f172a;
  --as-shadow-soft: 0 14px 30px rgba(0, 0, 0, .26);
  --as-sticky-shadow: 8px 0 16px -12px rgba(0, 0, 0, 0.75);
  --as-positive: #f87171;
  --as-negative: #60a5fa;
  --body-background: var(--as-page-bg);
  --main-header-background: var(--as-table-head-bg);
  --main-header-border: var(--as-card-border);
}

* {
  box-sizing: border-box;
}

/* Texts */

body,
a,
a:hover {
  color: var(--text);
}

body {
  background-color: var(--as-page-bg);
}

a {
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.main-content {
  background-color: var(--as-page-bg);
  color: var(--as-text-main);
}

.main-content header {
  background: var(--as-panel-bg);
  color: var(--as-text-main);
  border-bottom: 1px solid var(--as-card-border);
}

.header-content {
  min-height: 60px;
  height: 60px;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 32px;
  padding-top: 0;
}

.header-menu label,
.header-menu .notify-icon,
.header-menu .topbar-avatar-link,
.header-menu .logout-link,
.header-menu .theme-toggle {
  flex: 0 0 auto;
}

.header-menu label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--as-text-muted);
  line-height: 0;
}

.header-menu label .las,
.header-menu label div.las,
.header-menu label span.las,
.header-menu .notify-anchor .las,
.header-menu .user > .las {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--as-text-muted) !important;
  font-size: 18px;
  line-height: 1;
}

.header-menu .notify-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
}

.header-menu .notify-anchor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: inherit !important;
  line-height: 0;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.header-menu .notify-anchor::before,
.header-menu .notify-anchor::after {
  content: none !important;
}

.header-menu .notify-icon > .notify,
.header-menu .notify-icon .notify-anchor > .notify {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  display: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.header-menu .notify-icon .notify[data-count] {
  display: inline-block;
}

.header-menu .user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}

.header-menu .topbar-avatar-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  line-height: 0;
  text-decoration: none;
}

.header-menu #topbar-avatar {
  width: 32px !important;
  height: 32px !important;
  margin-right: 0 !important;
  border: 1px solid var(--as-card-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.header-menu .user > .las {
  width: 18px;
  height: 32px;
  font-size: 17px;
}

.header-menu .user span:last-child {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-left: 0;
  font-size: 12px;
  line-height: 1;
}

.header-menu .logout-link {
  color: var(--as-text-muted);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-menu .logout-link:hover,
.header-menu .logout-link:focus {
  color: var(--as-text-main);
  text-decoration: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  min-width: 58px;
  padding: 0 8px;
  border: 1px solid var(--as-card-border);
  border-radius: 999px;
  background: var(--as-chip-bg);
  color: var(--as-text-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--as-card-hover-border);
  background: var(--as-card-elevated-bg);
  color: var(--as-text-main);
  box-shadow: 0 7px 16px rgba(15, 23, 42, .08);
  outline: none;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  font-size: 13px;
  line-height: 1;
}

.theme-toggle__label {
  line-height: 1;
}

@media (max-width: 768px) {
  .header-menu {
    gap: 6px;
  }

  .theme-toggle {
    min-width: 32px;
    width: 32px;
    padding: 0;
  }

  .theme-toggle__label {
    display: none;
  }
}

.cp-link {
  color: var(--link);
  font-weight: 500;
}

/* Button */

a.cp-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.cp-button {
  border: none;
  outline: none;
  padding: 14px 28px;
  /* border-radius: 9999px; */
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.32px;
  cursor: pointer;
  background-color: var(--button-primary-background);
  color: var(--button-text);
}

.cp-button:hover,
.cp-button:active {
  color: var(--button-text);
  background-color: var(--button-primary-hover-background);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.cp-button.secondary {
  background-color: var(--button-secondary-background);
}

.cp-button.warn {
  background-color: var(--button-warn-background);
}

.cp-button.secondary:hover,
.cp-button.secondary:active,
.cp-button.warn:hover,
.cp-button.warn:active {
  opacity: 0.6;
}

.cp-button.inverted {
  padding: 5px 17px;
  font-size: 17px;
  font-weight: 300;
  background-color: transparent;
  color: #e1811b;
  border: 1px solid #e1811b;
}

/* Icon Button */

.cp-ic-button {
  display: inline-flex;
  outline: none;
  border: none;
  background: none;
  align-items: center;
}

.cp-ic-button:hover,
.cp-ic-button:active {
  text-decoration: underline;
  cursor: pointer;
}

.cp-ic-button:not(.after)::before {
  content: " ";
  margin-right: 7px;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.cp-ic-button.setting::before {
  background-image: url("../icons/ic-setting.b7007394023d.svg");
}

.cp-ic-button.newreview::before {
  background-image: url("../icons/ic-newreview.b98e498ed04f.svg");
}

.cp-ic-button.backbutton::before {
  background-image: url("../icons/ic-morereview.50ba73b3e9c0.svg");
  transform: scaleX(-1);
}

.cp-ic-button.after::after {
  content: " ";
  margin-left: 7px;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-position: center;
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

.cp-ic-button.after.morereview::after {
  background-image: url("../icons/ic-morereview.50ba73b3e9c0.svg");
}


.cp-ic-button.circle {
  font-size: 20px;
  font-weight: bold;
}

.cp-ic-button.circle::before,
.cp-ic-button.circle::after {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--ic-button-circle);
}

/* Input */

div.cp-input {
  display: inline-block;
  position: relative;
}

input.cp-input,
textarea.cp-input,
.cp-input input {
  width: 100%;
  font-size: 17px;
  letter-spacing: -0.3px;
  padding: 16px 24px;
  border: 1px solid var(--input-border);
  background-color: var(--input-background);
  outline: none;
  /* border-radius: 7px; */
}

input.cp-input:focus,
textarea.cp-input:focus,
.cp-input input:focus {
  background-color: var(--input-focus-background);
  border-color: var(--input-focus-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input.cp-input:placeholder,
textarea.cp-input:placholder,
.cp-input input:placeholder {
  color: var(--input-placeholder);
}

textarea.cp-input {
  line-height: 1.82;
}

.cp-input.error {
  padding-right: 46px;
  border: 1px solid var(--input-error-border);
  background-position: top 13px right 13px;
  background-image: url("../icons/ic-error.dff669f92a49.svg");
  background-size: 29px;
  background-repeat: no-repeat;
}

.error-message {
  color: var(--input-error);
  font-size: 14px;
  line-height: 1.7;
}

.cp-input:not(.error) ~ .error-message {
  display: none;
}

.cp-input.error ~ .error-message {
  display: block;
  width: 100%;
  text-align: right;
}

/* Star rating */

.cp-stars {
  color: var(--stars);
  font-size: 21px;
  line-height: 21px;
}

/* Chip */

.cp-chip {
  display: inline-block;
  padding: 0 17px;
  font-size: 15px;
  line-height: 32px;
  color: var(--chip-text);
  border: 1px solid var(--chip-border);
  border-radius: 9999px;
}

.cp-chip.green {
  padding: 0 13px;
  line-height: 27px;
  color: var(--chip-green-text);
  background-color: var(--chip-green-background);
  border-color: var(--chip-green-border);
}

/* Avatar */

.cp-avatar {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--avatar-placeholder);
  background-size: cover;
  background-position: center;
}

.cp-avatar.large {
  width: 100px;
  height: 100px;
}

/* Card */

.cp-card {
  border-radius: 21px;
  box-shadow: 0 3px 16px 0 #f1ece2;
  background-color: #ffffff;
  will-change: box-shadow;
}

/* Dialog */

.cp-dialog {
  padding: 21px 55px 21px 40px;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.35px;
  border-radius: 6px;
  border: solid 1px var(--dialog-border);
  background-color: var(--dialog-background);
}

.cp-dialog.info {
  color: var(--dialog-info);
  border-color: transparent;
  background-color: transparent;
}

/* Box */

.cp-box {
  padding: 68px 145px;
  border-radius: 6px;
  border: solid 2px var(--box-border);
}

/* Icon */

.cp-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cp-icon.small {
  width: 18px;
  height: 18px;
}

/* ===== Bootstrap 링크 스타일 완전 제거 ===== */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit !important;
  text-decoration: none !important;
}
