/* Pod Test Tool - Factory Floor UI
   Large fonts, high contrast, simple layout */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    line-height: 1.5;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.header {
    background: #16213e;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #0f3460;
}

.header h1 {
    font-size: 28px;
    color: #e94560;
}

.header .status {
    font-size: 20px;
    color: #aaa;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

/* Step cards */
.step {
    display: none;
    background: #16213e;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid #0f3460;
}

.step.active {
    display: block;
}

.step h2 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #e94560;
}

.step .step-number {
    font-size: 18px;
    color: #888;
    margin-bottom: 16px;
}

.step .description {
    font-size: 22px;
    color: #ccc;
    margin-bottom: 24px;
}

/* Form inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ddd;
}

.form-group input {
    width: 100%;
    font-size: 28px;
    padding: 14px 18px;
    border: 2px solid #0f3460;
    border-radius: 8px;
    background: #0a0a1a;
    color: #fff;
    font-family: monospace;
}

.form-group input:focus {
    outline: none;
    border-color: #e94560;
}

/* Buttons */
.btn {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 8px;
    transition: transform 0.1s, opacity 0.2s;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-pass {
    background: #27ae60;
    color: white;
}

.btn-fail {
    background: #c0392b;
    color: white;
}

.btn-action {
    background: #2980b9;
    color: white;
}

.btn-next {
    background: #0f3460;
    color: white;
}

.btn-abort {
    background: #7f1d1d;
    color: #fca5a5;
    font-size: 18px;
    padding: 10px 24px;
}

.buttons {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Result indicators */
.result-box {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 22px;
    font-weight: bold;
}

.result-pass {
    background: #064e3b;
    border: 2px solid #27ae60;
    color: #6ee7b7;
}

.result-fail {
    background: #7f1d1d;
    border: 2px solid #c0392b;
    color: #fca5a5;
}

.result-pending {
    background: #1e3a5f;
    border: 2px solid #2980b9;
    color: #93c5fd;
}

.result-detail {
    font-size: 18px;
    font-weight: normal;
    color: #ccc;
    margin-top: 4px;
}

/* Progress bar */
.progress-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.progress-step {
    flex: 1;
    height: 8px;
    background: #333;
    border-radius: 4px;
    transition: background 0.3s;
}

.progress-step.done {
    background: #27ae60;
}

.progress-step.fail {
    background: #c0392b;
}

.progress-step.current {
    background: #2980b9;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #555;
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 12px;
}

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

/* Summary table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 22px;
}

.summary-table th,
.summary-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.summary-table th {
    color: #aaa;
    font-size: 18px;
    text-transform: uppercase;
}

.summary-table .pass { color: #6ee7b7; font-weight: bold; }
.summary-table .fail { color: #fca5a5; font-weight: bold; }

/* Overall result banner */
.banner {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 48px;
    font-weight: bold;
}

.banner-pass {
    background: #064e3b;
    border: 4px solid #27ae60;
    color: #6ee7b7;
}

.banner-fail {
    background: #7f1d1d;
    border: 4px solid #c0392b;
    color: #fca5a5;
}

/* Log output */
.log-output {
    background: #0a0a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 16px;
    font-family: monospace;
    font-size: 14px;
    color: #aaa;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Responsive */
@media (max-width: 600px) {
    body { font-size: 20px; }
    .step h2 { font-size: 26px; }
    .btn { font-size: 20px; padding: 12px 28px; }
    .form-group input { font-size: 22px; }
}
