:root {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #e2e8f0;
    background-color: #050b1c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: inherit;
    background:
        radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.18), transparent 50%),
        linear-gradient(150deg, #050b1c 0%, #0a1f3c 55%, #2b1a06 100%);
    color: #e2e8f0;
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.app-body {
    padding: 3rem 5vw 4rem;
}

.surface {
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.6);
}

.auth-card {
    width: min(460px, 100%);
    padding: 3rem;
    background: rgba(11, 24, 48, 0.92);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

h1 {
    margin: 0 0 0.5rem;
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.brand-blue {
    color: #60a5fa;
    text-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.brand-gold {
    color: #facc15;
    text-shadow: 0 0 18px rgba(250, 204, 21, 0.35);
}

.subtitle {
    margin: 0 0 2rem;
    text-align: center;
    font-size: 1rem;
    color: #94a3b8;
}

.auth-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-card label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #cbd5f5;
}

.auth-card input {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    font-size: 1rem;
}

.auth-card input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

button,
.primary-btn {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

button:hover,
.primary-btn:hover {
    background: #1d4ed8;
}

button:disabled,
.primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.auth-card .error {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.45);
    font-size: 0.95rem;
}

.auth-card .hint {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
}

.auth-card .hint code {
    font-family: 'Courier New', monospace;
    background: rgba(148, 163, 184, 0.2);
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    color: #f8fafc;
}

.workspace {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.wizard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-card {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(6, 13, 33, 0.85);
    padding: 2.5rem 3rem;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.step-card.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.step-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.step-meta {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.step-body p {
    margin: 0 0 1.5rem;
    line-height: 1.6;
    color: #cbd5f5;
}

.file-drop {
    position: relative;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    background: rgba(2, 10, 28, 0.85);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.85);
}

.file-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.file-drop span {
    font-size: 0.92rem;
    color: #94a3b8;
}

.stats-card {
    margin-top: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    padding: 1.5rem;
}

.stats-card.hidden {
    display: none;
}

.stats-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #94a3b8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-item {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(5, 11, 28, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.stat-item span {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-item strong {
    font-size: 1.15rem;
}

.step-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
}

.results-table {
    margin-top: 1.5rem;
    overflow-x: auto;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.results-table th,
.results-table td {
    text-align: left;
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.results-table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table .status-ok {
    color: #4ade80;
}

.results-table .status-warn {
    color: #facc15;
}

.results-table .status-alert {
    color: #f87171;
}

.actions {
    display: flex;
    justify-content: flex-end;
}

.actions a {
    text-decoration: none;
    color: #fff;
    background: #dc2626;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.actions a:hover {
    opacity: 0.85;
}

.hidden {
    display: none;
}
