/* Premium Design System - Perfil Financiero */
:root {
    /* Color Palette - Deep Navy & Vibrant Accents */
    --primary-hue: 210;
    --primary-sat: 100%;
    --primary-light: 60%;

    --bg-dark-1: hsl(220, 30%, 8%);
    --bg-dark-2: hsl(220, 25%, 12%);
    --bg-glass: hsla(220, 25%, 16%, 0.4);

    --text-main: hsl(0, 0%, 96%);
    --text-muted: hsl(220, 20%, 70%);

    --accent-color: hsl(190, 80%, 50%);
    /* Cyan for financial growth vibe */
    --accent-glow: hsla(190, 80%, 50%, 0.3);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark-1);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

/* Layout */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Premium Components */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.glass-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), hsl(210, 80%, 50%));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--accent-glow);
    filter: brightness(1.1);
}

.input-field {
    background: var(--bg-dark-2);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* Typography */
h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.75rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Sidebar/Nav */
.sidebar {
    background: var(--bg-dark-2);
    border-right: 1px solid hsla(0, 0%, 100%, 0.05);
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: hsla(190, 80%, 50%, 0.1);
    color: var(--accent-color);
}

/* Reconnection Modal Styles */
#components-reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10000 !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

#components-reconnect-modal.components-reconnect-show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
}

/* Visibility Control */
#components-reconnect-modal .show-when-reconnecting,
#components-reconnect-modal .show-when-failed,
#components-reconnect-modal .show-when-rejected {
    display: none;
}

/* Reconnecting State */
#components-reconnect-modal:not(.components-reconnect-failed):not(.components-reconnect-rejected) .show-when-reconnecting {
    display: block !important;
}

/* Failed State */
#components-reconnect-modal.components-reconnect-failed .show-when-failed {
    display: block !important;
}

/* Rejected State */
#components-reconnect-modal.components-reconnect-rejected .show-when-rejected {
    display: block !important;
}