/*
  ERPS Portal — Base Styles
  Applied design direction: "The Most Popular WordPress Themes In The World" (ElegantThemes-style)
  - Typography: Lato + Noto Sans KR (loaded via <link> in templates)
  - Palette: #326bff / #2059ea + soft gray surfaces
*/

:root {
  --bg: #f2f4f5;
  --surface: #ffffff;
  --text: #20292f;
  --muted: #6d7c90;
  --border: rgba(32, 41, 47, 0.10);

  --accent: #326bff;
  --accent2: #2059ea;
  --pink: #ff4a9e;

  --radius: 8px;
  --radius-lg: 14px;

  /* ElegantThemes-like soft blue glow */
  --shadow: 0 8px 60px 0 rgba(103,151,255,.11), 0 12px 90px 0 rgba(103,151,255,.11);
  --shadow-strong: 0 18px 70px rgba(0, 0, 0, .18);

  --container: 1180px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--muted);
  background: var(--bg);
  font-family: "Lato", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  body { font-size: 15px; }
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

p { margin: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 0.15em 0.35em;
  background: rgba(32,41,47,0.06);
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* Utility */
.kicker { font-weight: 900; letter-spacing: -0.02em; color: var(--text); }
.muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

hr.sep {
  border: 0;
  height: 1px;
  background: rgba(32,41,47,0.08);
  margin: 22px 0;
}

/* Buttons (mapping existing .btn -> ElegantThemes-like .button) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.01em;
  line-height: 28px;
  text-transform: none;
  cursor: pointer;
  user-select: none;
  transition: transform .15s cubic-bezier(.4,0,.2,1), box-shadow .15s cubic-bezier(.4,0,.2,1), background-color .15s cubic-bezier(.4,0,.2,1), border-color .15s cubic-bezier(.4,0,.2,1), color .15s cubic-bezier(.4,0,.2,1);
  will-change: transform, box-shadow, background-color;
}

.btn:active { transform: translateY(1px); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(50,107,255,.20);
}

.btn--solid {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 12px 24px -6px rgba(50,107,255,.22);
}

.btn--solid:hover {
  box-shadow: 0 18px 44px -12px rgba(50,107,255,.32);
  transform: translateY(-1px);
}

/* Used on dark hero/topbar by default */
.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.75);
}

/* Used on light/admin surfaces */
.btn--ghost-dark {
  background: transparent;
  border-color: rgba(32,41,47,.16);
  color: var(--text);
}

.btn--ghost-dark:hover {
  background: rgba(50,107,255,.06);
  border-color: rgba(50,107,255,.35);
  color: var(--accent);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 11px;
  line-height: 24px;
}

/* Chips / badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
}

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(32,41,47,0.06);
}

/* Forms */
.form-row {
  display: grid;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(32,41,47,0.14);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.input::placeholder { color: rgba(109,124,144,.75); }

.input:focus {
  outline: none;
  border-color: rgba(50,107,255,.55);
  box-shadow: 0 0 0 4px rgba(50,107,255,.14);
}

textarea.input { min-height: 130px; resize: vertical; }

/* Notices */
.notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(32,41,47,.12);
  background: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}

.notice--ok { border-color: rgba(52,221,135,.55); background: rgba(52,221,135,.10); color: #1e6f43; }
.notice--warn { border-color: rgba(255,173,0,.55); background: rgba(255,173,0,.12); color: #8a5f00; }
.notice--err { border-color: rgba(255,76,0,.55); background: rgba(255,76,0,.10); color: #b13a00; }

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(32,41,47,.08);
  text-align: left;
  vertical-align: top;
}

.table th {
  font-weight: 900;
  color: rgba(32,41,47,.86);
}

.table tbody tr:hover {
  background: rgba(50,107,255,.04);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(32,41,47,.14);
  background: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 800;
  color: rgba(32,41,47,.78);
}

.pill--active { border-color: rgba(52,221,135,.40); background: rgba(52,221,135,.10); }
.pill--planned { border-color: rgba(50,107,255,.32); background: rgba(50,107,255,.08); }
.pill--suspended { border-color: rgba(255,173,0,.38); background: rgba(255,173,0,.12); }
.pill--deleted { border-color: rgba(255,76,0,.38); background: rgba(255,76,0,.10); }
