:root {
    --primary: #2F5496;
    --primary-light: #4472C4;
    --primary-dark: #1B3A6B;
    --accent: #D6E4F0;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --bg: #F0F4F8;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    min-height: 100vh;
}

/* Login */
.login-card {
    max-width: 400px;
    margin: 0 auto;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-checking {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-pass {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-failed {
    background-color: #FEE2E2;
    color: #991B1B;
}

.badge-retrieving {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-completed {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-error {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Spinner */
.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* Pulse animation for active states */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* Account row input */
.account-row {
    transition: all 0.2s ease;
}

.account-row:hover {
    background-color: #F8FAFC;
}

/* Region chips */
.region-chip {
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.region-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.region-chip.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* View transitions */
.view {
    display: none !important;
}

.view.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for region selector */
.region-selector::-webkit-scrollbar {
    width: 6px;
}

.region-selector::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

/* Countdown timer */
.countdown {
    font-variant-numeric: tabular-nums;
}
