@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");

:root {
  --bg-0: #f4f7fb;
  --bg-1: #eef3f9;
  --ink-0: #0f172a;
  --ink-1: #334155;
  --line-0: rgba(148, 163, 184, 0.35);
  --line-1: rgba(148, 163, 184, 0.22);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --shadow-0: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-1: 0 8px 22px rgba(15, 23, 42, 0.06);
  --radius-0: 20px;
  --radius-1: 14px;
}

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

body {
  font-family: "Pretendard Variable", "SUIT Variable", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(circle at 10% -20%, #dce9ff 0%, rgba(220, 233, 255, 0) 38%),
    radial-gradient(circle at 88% -10%, #e3f3ff 0%, rgba(227, 243, 255, 0) 40%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  color: var(--ink-0);
  min-height: 100vh;
}

.app-body {
  position: relative;
}

.app-bg-orb {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
  opacity: 0.34;
}

.app-bg-orb-a {
  top: -8rem;
  left: -7rem;
  background: #9ec5ff;
}

.app-bg-orb-b {
  top: 18%;
  right: -8rem;
  background: #b7e6ff;
}

.app-bg-orb-c {
  bottom: -9rem;
  left: 34%;
  background: #cfd7ff;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line-0);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink-0);
}

.app-brand-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.16);
}

.app-ghost-btn {
  border: 1px solid var(--line-0);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 9999px;
  padding: 0.36rem 0.78rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-1);
}

.app-ghost-btn:hover {
  background: #fff;
  color: var(--ink-0);
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: 9999px;
  color: #334155;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 140ms ease;
}

.app-nav-link:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-1);
}

.app-nav-link.is-active {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border-color: rgba(59, 130, 246, 0.26);
  color: #0b3a78;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.app-main {
  position: relative;
  z-index: 1;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border-color: var(--line-0) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--ink-0) !important;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: rgba(59, 130, 246, 0.34) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  outline-offset: 1px;
  border-color: rgba(59, 130, 246, 0.44) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

button {
  border-radius: 12px !important;
  font-weight: 600;
  letter-spacing: -0.005em;
}

a,
button {
  transition: transform 110ms ease, box-shadow 110ms ease, opacity 110ms ease, background 110ms ease;
}

a:hover,
button:hover {
  transform: translateY(-1px);
}

a:active,
button:active {
  transform: translateY(0);
}

.bg-white.border.border-slate-300,
.rounded.border.border-slate-300.bg-white,
article.rounded.border.bg-white,
section.rounded.border.bg-white {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border-color: var(--line-0) !important;
  border-radius: var(--radius-0) !important;
  box-shadow: var(--shadow-0);
}

.rounded.border.border-slate-200,
li.rounded.border.border-slate-200 {
  border-color: var(--line-1) !important;
  border-radius: var(--radius-1) !important;
}

.bg-slate-50 {
  background: rgba(241, 245, 249, 0.66) !important;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  border-color: var(--line-1) !important;
}

thead th {
  font-weight: 650;
  color: #1e293b;
}

tbody tr:hover td {
  background: rgba(59, 130, 246, 0.04);
}

.field-warning {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.chart-pie {
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  border: 1px solid var(--line-0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.chart-bar-row {
  display: grid;
  grid-template-columns: 10rem 1fr 6.5rem;
  align-items: center;
  gap: 0.5rem;
}

.chart-bar-label {
  font-size: 0.75rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-track {
  height: 0.75rem;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
}

.chart-bar-value {
  text-align: right;
  font-size: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.form-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75)),
    radial-gradient(circle at 12% -30%, rgba(147, 197, 253, 0.42), transparent 44%);
}

.form-pill {
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.85);
  color: #334155;
  padding: 0.28rem 0.62rem;
  border-radius: 9999px;
  font-weight: 600;
}

.admission-sheet {
  border-collapse: collapse;
  border: 1px solid rgba(148, 163, 184, 0.45);
  min-width: 980px;
  background: #f8fafc;
}

.admission-sheet th {
  background: #ece2bf !important;
  color: #111827;
  border: 1px solid rgba(100, 116, 139, 0.45) !important;
  text-align: center;
  padding: 0.42rem;
  font-weight: 700;
}

.admission-sheet tbody td {
  border: 1px solid rgba(100, 116, 139, 0.4) !important;
  background: #f8fafc;
  padding: 0.2rem;
  text-align: center;
}

.admission-sheet .sheet-stamp {
  min-width: 5.1rem;
  font-size: 0.82rem;
}

.admission-sheet .sheet-year,
.admission-sheet .sheet-sem {
  background: #f0e8cc;
  font-weight: 650;
  min-width: 3.4rem;
}

.sheet-input {
  width: 100%;
  min-width: 4.3rem;
  padding: 0.34rem !important;
  text-align: center;
  font-size: 0.76rem;
  border-radius: 8px !important;
}

.admission-sheet tbody tr:hover td {
  background: #eef5ff;
}

@media (max-width: 768px) {
  .app-brand {
    font-size: 0.96rem;
  }

  .chart-bar-row {
    grid-template-columns: 6.5rem 1fr 2.3rem;
  }

  .chart-pie {
    width: 140px;
    height: 140px;
  }
}
