/* ========== OPENSELF PREMIUM STYLES ========== */

/* Tailwind uses Preflight so we don't need reset, but we need to ensure our tokens work */
:root {
    /* ===== DESIGN TOKENS ===== */
    --os-bg: #0a0a0f;
    --os-bg-secondary: #12121a;
    --os-text: #ffffff;
    --os-text-secondary: #cbd5e1;
    --os-accent: #7c5dfa;
    --os-success: #10b981;
    --os-error: #ef4444;
    --os-border: rgba(255, 255, 255, 0.1);
}

/* Base & Typography */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #1a1a2e, #0a0a0f);
    min-height: 100vh;
    color: var(--os-text);
}

.theme-light body {
    background: radial-gradient(circle at top left, #f3f4f6, #ffffff);
    color: #020617;
}

.theme-light {
    --os-text: #020617;
    --os-text-secondary: #4b5563;
    --os-border: rgba(0, 0, 0, 0.1);
    color: var(--os-text);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-step {
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Utilities mapping for Render.js */
.bg-surface {
    background-color: transparent;
}

/* Handled by glass card */
.text-primary {
    color: inherit;
}

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

.border-default {
    border-color: var(--os-border);
}

.bg-input {
    background-color: rgba(0, 0, 0, 0.2);
}

.theme-light .bg-input {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Buttons & Inputs */
button {
    transition: all 0.2s;
}

button:active {
    transform: scale(0.98);
}

.bg-accent {
    background-color: var(--os-accent);
}

.text-accent {
    color: var(--os-accent);
}

.border-accent {
    border-color: var(--os-accent);
}

/* Opacity Utilities */
.bg-opacity-10 {
    background-color: rgba(124, 93, 250, 0.1);
}

.bg-opacity-20 {
    background-color: rgba(124, 93, 250, 0.2);
}

/* Error/Success */
.text-success {
    color: var(--os-success);
}

.text-error {
    color: var(--os-error);
}

.bg-success.bg-opacity-10 {
    background-color: rgba(16, 185, 129, 0.1);
}

.border-success.border-opacity-30 {
    border-color: rgba(16, 185, 129, 0.3);
}

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

::-webkit-scrollbar-thumb {
    background: var(--os-border);
    border-radius: 3px;
}