/* ===== RESET & VARIABLES ===== */
/* Same type and palette as the landing (public/css/landing.css): the app and
   the site read as one product. Fonts are local (no Google Fonts request). */
@font-face{font-family:Syne;src:url('/fonts/syne-variable.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-variable.woff2') format('woff2');font-weight:100 1000;font-display:swap}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #181a1b;
    --bg-canvas: #181a1b;
    --dot-color: rgba(255, 255, 255, 0.15);
    /* Opacidade e diâmetro dos dots do fundo (editáveis no board standalone). */
    --dot-opacity: 0.18;
    --dot-size: 1.5px;
    --dot-spacing: 28px;
    --glass-bg: rgba(231, 234, 234, 0.04);
    --glass-border: #454b4e;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --text-primary: #e7eaea;
    --text-secondary: #a6adaf;
    --text-muted: #80878a;
    --accent: #dce1e2;
    --accent-glow: rgba(220, 225, 226, 0.18);
    --danger: #f43f5e;
    --success: #22c55e;
    --warning: #f97316;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: Syne, 'DM Sans', sans-serif;
    --surface: #202324;
    --node: #292e30;
    --line: #454b4e;
    --toolbar-h: 56px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ===== GLASSMORPHISM UTIL ===== */
.glass-panel {
    background: rgba(32, 35, 36, 0.82);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: #5558e6;
    box-shadow: 0 0 12px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 20px;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    z-index: 5000;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
}
