/* assets/css/app.css — UEats 보조 스타일.
   주의: Tailwind CDN 모드는 @apply 미지원 → 클래스는 HTML 에서 직접 조합. */

:root {
  --ue-brand: #05A357;
  --ue-brand-600: #04934E;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", system-ui, Segoe UI, Roboto, sans-serif;
}

/* Toast (Tailwind 외 — 위치/애니메이션) */
.ue-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: none;
}
.ue-toast > div {
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.ue-toast.show > div {
  opacity: 1;
  transform: translateY(0);
}

/* 폼 컴포넌트 — Tailwind 가 아직 못 잡는 상태일 때 fallback 스타일.
   실제 시각은 HTML 의 Tailwind 클래스가 우선. */
.ue-field {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.ue-field:focus {
  outline: none;
  border-color: var(--ue-brand);
  box-shadow: 0 0 0 3px rgba(5, 163, 87, .25);
}
.ue-label { display: block; font-size: 14px; font-weight: 500; color: #374151; margin-bottom: 4px; }
.ue-error { margin-top: 4px; font-size: 12px; color: #DC2626; }
.ue-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 8px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; transition: background-color .15s ease, opacity .15s ease;
  cursor: pointer;
}
.ue-btn-primary { background: var(--ue-brand); color: #fff; }
.ue-btn-primary:hover { background: var(--ue-brand-600); }
.ue-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.ue-btn-ghost {
  background: #fff;
  color: #1F2937;
  border: 1px solid #D1D5DB;
}
.ue-btn-ghost:hover { background: #F9FAFB; }
.ue-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.ue-link { color: var(--ue-brand); }
.ue-link:hover { text-decoration: underline; }
