/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* ===== Color Tokens ===== */
:root {
  --color-primary: #1565c0;
  --color-primary-dark: #0d47a1;
  --color-danger: #c62828;
  --color-danger-bg: #ffebee;
  --color-danger-border: #ef9a9a;
  --color-success: #2e7d32;
  --color-warning: #e65100;
  --color-warning-bg: #fff8e1;
  --color-text: #1a1a1a;
  --color-text-muted: #616161;
  --color-text-secondary: #9e9e9e;
  --color-border: #bdbdbd;
  --color-border-light: #e0e0e0;
  --color-bg: #fff;
  --color-surface: #f5f5f5;
  --color-focus-ring: rgba(21, 101, 192, 0.15);
  --color-primary-bg: #e3f2fd;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
}

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

html {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 2rem 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.15s;
}

a:hover {
  color: var(--color-primary-dark);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

label:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Layout ===== */
.container {
  max-width: 640px;
  margin: 0 auto;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
}

.container-login {
  max-width: 440px;
  margin: 4rem auto;
}

/* ===== Typography ===== */
h1 {
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

h3 {
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
}

/* ===== Form elements ===== */
input[type='text'],
input[type='password'],
input[type='file'],
select,
textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:not([type='file']):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-focus-ring);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-secondary);
}

input[aria-invalid='true'] {
  border-color: var(--color-danger);
}

input[aria-invalid='true']:focus {
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}

/* ===== Buttons ===== */
button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

button:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--color-bg);
  color: var(--color-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.btn-danger {
  background: var(--color-bg);
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-danger-bg);
}

.btn-compare-selected {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}

/* ===== Alert / Error ===== */
.alert-success {
  color: var(--color-success);
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-info {
  color: var(--color-primary);
  background: var(--color-primary-bg);
  border: 1px solid #90caf9;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  color: var(--color-danger);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.sig-ok {
  color: var(--color-success);
}

.sig-warn {
  color: var(--color-warning);
}

/* ===== Utility ===== */
.loading-container,
.error-container,
.not-found-container {
  padding: 4rem 1rem;
}

.fw-xl {
  font-weight: 700;
}

.fsize-3rem {
  font-size: 3rem;
}

.text-left {
  text-align: left;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mb-1-5 {
  margin-bottom: 1.5rem;
}

.mt-1-5 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.text-link {
  display: inline-block;
  text-decoration: none;
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

.notes-text {
  white-space: pre-wrap;
}

/* ===== Spinner ===== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Form Row ===== */
.form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.form-row + .form-row {
  margin-top: 0.5rem;
}

/* ===== Card ===== */
.card {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* ===== Responsive ===== */
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }

  .container-login {
    margin: 2rem auto;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Minimum 44x44px touch targets (WCAG 2.5.5 / Apple HIG) */
  button,
  .btn-outline,
  .btn-danger,
  .btn-sm,
  label[for="upload-file"] {
    min-height: 44px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

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

