html, body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #222;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f2f4f7;
}

.login-card {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: 320px;
}

.login-card h1 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.login-card input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-card button {
    margin-top: 1.5rem;
    padding: 0.6rem;
    background: #0b5ed7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.login-error {
    color: #b3261e;
    font-size: 0.9rem;
}

.upload-box {
    border: 1px dashed #aaa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.primary-button {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #0b5ed7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.primary-button:disabled {
    background: #9db8e8;
    cursor: not-allowed;
}

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

.results-table th, .results-table td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.status-ok {
    color: #1a7f37;
    font-weight: 600;
}

.status-error {
    color: #b3261e;
    font-weight: 600;
}

.spinner {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 3px solid #cddcf7;
    border-top-color: #0b5ed7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.5rem;
}

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

.processing-indicator {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    color: #0b5ed7;
    font-weight: 600;
}

.primary-button .spinner {
    border-color: rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
}

.error-message {
    color: #b3261e;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
