:root {
    --background: #ffffff;
    --foreground: #0f172a;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #f1f5f9;
    --secondary-hover: #e2e8f0;
    --border: #e2e8f0;
    --ring: rgba(59, 130, 246, 0.5);
    --radius: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f172a;
        --foreground: #f8fafc;
        --secondary: #1e293b;
        --secondary-hover: #334155;
        --border: #1e293b;
    }
}

body {
    width: 300px;
    margin: 0;
    padding: 16px;
    background: var(--background);
    color: var(--foreground);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.select {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
    outline: none;
    transition: all 0.2s;
}

.select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--ring);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--secondary);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s;
}

.button-secondary:hover {
    background: var(--secondary-hover);
}

.button-coffee {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #ff5f5f;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s;
}

.button-coffee:hover {
    background: #ff4545;
}

.divider {
    position: relative;
    text-align: center;
    margin: 16px 0;
}

.divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}

.divider span {
    position: relative;
    padding: 0 8px;
    background: var(--background);
    color: #64748b;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Focus styles */
*:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--ring);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.container {
    animation: fadeIn 0.3s ease-in-out;
}