:root {
    /* Light theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-success: #10b981;
    --accent-error: #ef4444;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --progress-bg: #e2e8f0;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #60a5fa;
    --accent-success: #34d399;
    --accent-error: #f87171;
    --border-color: #334155;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --progress-bg: #334155;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: background-color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

.verification-card {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-container {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
}

.logo {
    width: 100%;
    height: 100%;
}

.header-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.verification-status {
    text-align: center;
    margin-bottom: 2rem;
}

.status-indicator {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 3px solid var(--progress-bg);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-icon,
.failure-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.status-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-text p {
    color: var(--text-secondary);
}

.progress-container {
    margin-top: 1.5rem;
}

.progress-bar {
    height: 4px;
    background-color: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    width: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.info-sections {
    display: grid;
    gap: 1rem;
}

.info-card {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.info-card ul {
    list-style-position: inside;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* State-specific styles */
[data-state="success"] .spinner {
    display: none;
}

[data-state="success"] .success-icon {
    display: block;
    color: var(--accent-success);
}

[data-state="failure"] .spinner {
    display: none;
}

[data-state="failure"] .failure-icon {
    display: block;
    color: var(--accent-error);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .verification-card {
        padding: 1.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

    .logo-container {
        margin-bottom: 1rem;
    }
}