/* /Pages/Home.razor.rz.scp.css */
[b-kg0jt3o4qy] * {
    box-sizing: border-box;
}

.app-container[b-kg0jt3o4qy] {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e0e0;
    background: #121212;
    min-height: 100vh;
}

.app-header[b-kg0jt3o4qy] {
    text-align: center;
    margin-bottom: 20px;
}

.app-header h1[b-kg0jt3o4qy] {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}

.subtitle[b-kg0jt3o4qy] {
    margin: 4px 0 0;
    color: #999;
    font-size: 0.9rem;
}

.card[b-kg0jt3o4qy] {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.card h2[b-kg0jt3o4qy] {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: #fff;
}

.card h3[b-kg0jt3o4qy] {
    margin: 16px 0 8px;
    font-size: 1rem;
    color: #ccc;
}

.hint[b-kg0jt3o4qy] {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 10px;
}

/* Fields */
.field[b-kg0jt3o4qy] {
    margin-bottom: 14px;
}

.field label[b-kg0jt3o4qy] {
    display: block;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 4px;
    font-weight: 600;
}

.field input[type="text"][b-kg0jt3o4qy] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #2a2a2a;
    color: #e0e0e0;
}

.field input[type="text"]:focus[b-kg0jt3o4qy] {
    outline: none;
    border-color: #5b8def;
}

.field input[type="text"]:disabled[b-kg0jt3o4qy] {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-row[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.checkbox-row input[type="checkbox"][b-kg0jt3o4qy] {
    width: 18px;
    height: 18px;
    accent-color: #5b8def;
}

.checkbox-row label[b-kg0jt3o4qy] {
    font-size: 0.82rem;
    color: #aaa;
    margin: 0;
    font-weight: normal;
}

/* Upload */
.file-input[b-kg0jt3o4qy] {
    display: none;
}

.upload-grid[b-kg0jt3o4qy] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.upload-zone[b-kg0jt3o4qy] {
    padding: 14px;
}

.upload-zone h2[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    margin: 0;
}

.upload-zone-header[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.btn-remove-batch[b-kg0jt3o4qy] {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 6px;
    color: #777;
    transition: background 0.2s, color 0.2s;
}

.btn-remove-batch:hover[b-kg0jt3o4qy] {
    background: #c6282833;
    color: #ef9a9a;
}

.upload-btn[b-kg0jt3o4qy] {
    display: inline-block;
    padding: 10px 20px;
    background: #2a2a2a;
    border: 2px dashed #555;
    border-radius: 10px;
    color: #8ab4f8;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: border-color 0.2s;
}

.upload-btn:hover[b-kg0jt3o4qy] {
    border-color: #8ab4f8;
}

.upload-count[b-kg0jt3o4qy] {
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a5d6a7;
}

.processing[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    color: #8ab4f8;
    font-size: 0.9rem;
}

.spinner[b-kg0jt3o4qy] {
    width: 22px;
    height: 22px;
    border: 3px solid #333;
    border-top: 3px solid #8ab4f8;
    border-radius: 50%;
    animation: spin-b-kg0jt3o4qy 0.8s linear infinite;
}

@keyframes spin-b-kg0jt3o4qy {
    to { transform: rotate(360deg); }
}

.ocr-details[b-kg0jt3o4qy] {
    margin-top: 10px;
    font-size: 0.82rem;
}

.ocr-details summary[b-kg0jt3o4qy] {
    cursor: pointer;
    color: #888;
}

.ocr-details pre[b-kg0jt3o4qy] {
    background: #2a2a2a;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    overflow-x: auto;
    max-height: 200px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #ccc;
}

/* Address rows */
.address-row[b-kg0jt3o4qy] {
    background: #2a2a2a;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.address-row.valid[b-kg0jt3o4qy] {
    border-color: #2e7d32;
}

.address-row.invalid[b-kg0jt3o4qy] {
    border-color: #c62828;
}

.address-fields input[type="text"][b-kg0jt3o4qy] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 6px;
    background: #1e1e1e;
    color: #e0e0e0;
}

.address-fields input[type="text"]:focus[b-kg0jt3o4qy] {
    outline: none;
    border-color: #5b8def;
}

.city-state-zip[b-kg0jt3o4qy] {
    display: flex;
    gap: 6px;
}

.city-state-zip input[b-kg0jt3o4qy] {
    flex: 1;
}

.state-input[b-kg0jt3o4qy] {
    max-width: 60px;
    text-transform: uppercase;
}

.zip-input[b-kg0jt3o4qy] {
    max-width: 90px;
}

.address-actions[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.badge[b-kg0jt3o4qy] {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-ok[b-kg0jt3o4qy] {
    background: #1b5e20;
    color: #a5d6a7;
}

.badge-err[b-kg0jt3o4qy] {
    background: #b71c1c;
    color: #ef9a9a;
}

.btn-icon[b-kg0jt3o4qy] {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
    color: #aaa;
}

.btn-remove:hover[b-kg0jt3o4qy] {
    background: #c6282833;
    color: #ef9a9a;
}

/* Buttons */
.btn-group[b-kg0jt3o4qy] {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn[b-kg0jt3o4qy] {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:disabled[b-kg0jt3o4qy] {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary[b-kg0jt3o4qy] {
    background: #5b8def;
    color: #fff;
    flex: 1;
}

.btn-secondary[b-kg0jt3o4qy] {
    background: #333;
    color: #bbb;
}

.btn-accent[b-kg0jt3o4qy] {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    font-size: 1.05rem;
}

.btn-full[b-kg0jt3o4qy] {
    width: 100%;
    padding: 14px;
}

/* Results */
.results[b-kg0jt3o4qy] {
    border-color: #2e7d32;
}

/* Batch legend */
.batch-legend[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: #aaa;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #2a2a2a;
    border-radius: 8px;
}

.legend-chip[b-kg0jt3o4qy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.route-list[b-kg0jt3o4qy] {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-stop[b-kg0jt3o4qy] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.route-stop:last-child[b-kg0jt3o4qy] {
    border-bottom: none;
}

.stop-number[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    color: #8ab4f8;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.start-stop .stop-number[b-kg0jt3o4qy] {
    background: #1b5e20;
    color: #a5d6a7;
}

.end-stop .stop-number[b-kg0jt3o4qy] {
    background: #b71c1c;
    color: #ef9a9a;
}

.stop-info[b-kg0jt3o4qy] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.stop-address[b-kg0jt3o4qy] {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ddd;
}

.stop-address strong[b-kg0jt3o4qy] {
    color: #fff;
}

.batch-tag[b-kg0jt3o4qy] {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 600;
    width: fit-content;
}

/* Device switch indicator */
.device-switch[b-kg0jt3o4qy] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    background: linear-gradient(90deg, #ff6f0022, #ff6f0044, #ff6f0022);
    border: 1px dashed #ff9800;
    border-radius: 10px;
    animation: pulse-border-b-kg0jt3o4qy 2s ease-in-out infinite;
}

@keyframes pulse-border-b-kg0jt3o4qy {
    0%, 100% { border-color: #ff9800; }
    50% { border-color: #ffcc80; }
}

.switch-icon[b-kg0jt3o4qy] {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.switch-text[b-kg0jt3o4qy] {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffcc80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav links */
.nav-links[b-kg0jt3o4qy] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn[b-kg0jt3o4qy] {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.nav-btn:hover[b-kg0jt3o4qy] {
    opacity: 0.85;
}

.nav-btn.google[b-kg0jt3o4qy] {
    background: #1a73e8;
    color: #fff;
}

.nav-btn.waze[b-kg0jt3o4qy] {
    background: #6a1b9a;
    color: #fff;
}

.nav-btn.apple[b-kg0jt3o4qy] {
    background: #0071e3;
    color: #fff;
}

.nav-note[b-kg0jt3o4qy] {
    margin-top: 8px;
    text-align: center;
}

/* Error */
.error-bar[b-kg0jt3o4qy] {
    background: #b71c1c;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-top: 12px;
}
