:root {
    color-scheme: light;
    font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    font-synthesis: none;
    --navy-950: #12233d;
    --navy-800: #263d5d;
    --blue-600: #2d74d6;
    --surface: #ffffff;
    --canvas: #eef2f6;
    --line: #dce4ed;
    --line-soft: #edf1f5;
    --text: #172238;
    --muted: #66758b;
    --danger: #d23b3b;
    --success: #28845c;
    --warning: #b76a00;
}

* {
    box-sizing: border-box;
}

html,
body,
#app,
.app-shell {
    min-height: 100%;
    margin: 0;
}

body {
    background: var(--canvas);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: #245fae;
}

:focus-visible {
    outline: 3px solid rgba(45, 116, 214, 0.45);
    outline-offset: 2px;
}

.route-message {
    width: min(680px, calc(100% - 32px));
    margin: 72px auto;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: none;
    padding: 12px 48px 12px 16px;
    border: 1px solid #f0c7c7;
    border-radius: 6px;
    background: #fff2f2;
    box-shadow: 0 10px 30px rgba(24, 39, 62, 0.18);
    color: #7f2323;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
}

.blazor-error-boundary {
    padding: 16px;
    border-radius: 6px;
    background: #a92d2d;
    color: white;
}

.blazor-error-boundary::after {
    content: "화면을 처리하는 중 오류가 발생했습니다.";
}

.loading-progress {
    position: absolute;
    inset: 20vh 0 auto;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d9e1ea;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--blue-600);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    inset: calc(20vh + 3.25rem) 0 auto;
    text-align: center;
    font-weight: 700;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "불러오는 중");
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
