/* ── Reset & base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #1e1e1e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

/* ── Container ───────────────────────────────── */
.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    max-width: 600px;
    width: 100%;
    padding: 2.5rem 2rem;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: .25rem;
}

.subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.badge {
    background: #e8eaed;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: #444;
}

/* ── Form ────────────────────────────────────── */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.field {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #555;
}

.field input {
    padding: .5rem .75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .9rem;
    transition: border-color .2s;
}

.field input:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,.15);
}

button {
    align-self: flex-end;
    padding: .55rem 1.25rem;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}

button:hover { background: #3a7bc8; }
button:disabled { opacity: .6; cursor: default; }

/* ── Result panel ────────────────────────────── */
.result-panel { animation: fadeIn .3s ease; }

.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Banner */
.status-banner {
    padding: .75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.banner-ok   { background: #e6f9ee; color: #1a7a3a; }
.banner-warn { background: #fff4e5; color: #b35c00; }

/* Details table */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.details-table th,
.details-table td {
    padding: .55rem .75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: .9rem;
}

.details-table th {
    width: 35%;
    color: #555;
    font-weight: 600;
}

.tag-yes { color: #1a7a3a; font-weight: 700; }
.tag-no  { color: #c0392b; font-weight: 700; }

/* Routing note */
.routing-note {
    background: #fff4e5;
    border-left: 4px solid #e67e22;
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: .88rem;
    color: #7a4a00;
}

/* Error */
.error-panel {
    background: #fde8e8;
    border-left: 4px solid #e74c3c;
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    color: #922;
    font-size: .9rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
    .container { padding: 1.5rem 1rem; }
    .form-row  { flex-direction: column; }
    button     { width: 100%; }
}
