* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #f0f2f5; color: #333; }
.container { max-width: 800px; margin: 2rem auto; padding: 1rem; }
header { margin-bottom: 1.5rem; }
h1 { font-size: 1.75rem; color: #1a1a2e; }

/* Cards */
.card { background: #fff; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.1); margin-bottom: 1rem; }

/* Form */
.form-group { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
select, input[type="file"] { width: 100%; padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }

/* Buttons */
.btn { display: inline-block; border: none; padding: 0.6rem 1.4rem; border-radius: 4px; cursor: pointer; font-size: 1rem; }
.btn-primary { background: #1a1a2e; color: #fff; }
.btn-primary:hover { background: #16213e; }
.btn-secondary { background: #f0f2f5; color: #1a1a2e; border: 1px solid #ccc; }
.btn-secondary:hover { background: #e4e6e9; }

/* Status banners */
.status-banner { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1.25rem; font-weight: 600; }
.status-success { background: #d4edda; color: #155724; }
.status-error { background: #f8d7da; color: #721c24; }
.status-icon { font-size: 1.1rem; }

/* Metadata table */
.section-title { font-size: 1.1rem; margin-bottom: 1rem; color: #1a1a2e; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid #eee; font-size: 0.9rem; }
th { background: #f8f9fa; font-weight: 600; width: 35%; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-high { background: #d4edda; color: #155724; }
.badge-medium { background: #fff3cd; color: #856404; }
.badge-low { background: #f8d7da; color: #721c24; }
.badge-invalid { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Raw description */
.raw-description { background: #f9f9f9; border: 1px solid #ddd; border-radius: 4px; padding: 0.75rem; font-size: 0.85rem; white-space: pre-wrap; max-height: 200px; overflow-y: auto; }
details summary { cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
details { margin-top: 1rem; }

/* Error message */
.error-message { margin-top: 0.5rem; font-size: 0.95rem; }

/* Processing */
.processing-card { text-align: center; padding: 3rem 1.5rem; }
.processing-card h2 { margin: 1.25rem 0 0.5rem; color: #1a1a2e; }
.processing-card p { color: #666; font-size: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 48px; height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #1a1a2e;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
