import { createGlobalStyle } from 'styled-components'; const GlobalStyle = createGlobalStyle` :root { --bg-main: #151515; --bg-surface: #151515; --bg-input: #1a1a1a; --bg-code: #0d0d0d; --text-primary: #F5F5F5; --text-secondary: #8A8A8A; --border-color: #333333; --border-hover: #555555; --accent-hover: #FFFFFF; --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-xxl: 64px; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html, body { height: 100%; font-family: var(--font-sans); background-color: var(--bg-main); color: var(--text-primary); line-height: 1.5; font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } a { color: inherit; text-decoration: none; } button { font-family: inherit; cursor: pointer; } /* 기본적으로 관제 UI 텍스트 드래그 방지 */ body { user-select: none; -webkit-user-select: none; } /* 편집/로그/입력/코드 영역은 선택 허용 */ input, textarea, select, pre, code, [contenteditable="true"], .cm-editor, .cm-content { font-family: inherit; user-select: text; -webkit-user-select: text; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: var(--bg-main); } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: var(--border-hover); } `; export default GlobalStyle;