/* SLUI base: CSS reset, theme variable defaults, scrollbars. */

/* SL Editor UI System - Main Stylesheet */
/* All theming via CSS custom properties */

/* CSS RESET & BASE */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow: hidden;
    transition: background var(--transition), color var(--transition);
}

/* THEME VARIABLES (defaults - overridden by JS) */

:root {
    /* Fonts */
    --font-code: 'JetBrains Mono', monospace;
    --font-ui: 'Inter', sans-serif;
    --font-content: 'IBM Plex Sans', sans-serif;
    
    /* Colors */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --bg-panel: #1a1a2e;
    --bg-hover: #252547;
    --bg-active: #0f3460;
    
    --text-primary: #eaeaea;
    --text-secondary: #b8b8b8;
    --text-muted: #6b6b8d;
    --text-inverse: #1a1a2e;
    
    --accent: #e94560;
    --accent-hover: #ff6b6b;
    --accent-active: #c73e54;
    
    --border: #2a2a4a;
    --border-focus: #e94560;
    
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #ef4444;
    --info: #38bdf8;
    
    --shadow: rgba(0, 0, 0, 0.3);
    --overlay: rgba(10, 10, 20, 0.85);
    
    --toolbar-bg: #0f0f1a;
    --window-header: #16213e;
    --scrollbar: #2a2a4a;
    --scrollbar-thumb: #e94560;
    
    /* Effects */
    --glow: 0 4px 20px rgba(233, 69, 96, 0.15);
    --border-radius: 8px;
    --transition: 0.2s;
    --content-padding: 0px;
    
    /* Neumorphic (for designer theme) */
    --neumorphic-raised: none;
    --neumorphic-inset: none;
    
    /* Layout */
    --toolbar-size: 36px;
    --window-header-height: 36px;
    --window-min-width: 200px;
    --window-min-height: 150px;
}

/* SCROLLBARS */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}
