/* theme.css — light-first design tokens (standard theme variables) */

/* 숫자(0-9)만 크기 조절 — size-adjust 값만 바꾸면 됨 (100%=본문과 동일, 92%=약간 작게) */
@font-face {
    font-family: 'Pretendard Nums';
    font-weight: 45 920;
    font-style: normal;
    font-display: swap;
    src: url('../vendor/pretendard/woff2/PretendardVariable.woff2') format('woff2-variations');
    unicode-range: U+0030-0039;
    size-adjust: 90%;
    letter-spacing: -0.05em !important;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --primary-color: #3a8fd4;
    --primary-color-hover: #2a6fad;
    --primary-color-soft: rgba(58, 143, 212, 0.14);
    --primary-color-dark: #1a4f7a;
    --primary-color-dark-hover: #143d5e;
    --primary-color-dark-soft: rgba(26, 79, 122, 0.14);
    --primary-color-light: #5eb0e8;
    --primary-color-light-hover: #3a8fd4;
    --primary-color-light-soft: rgba(94, 176, 232, 0.14);

    --secondary-color: #666;
    --secondary-color-hover: #555;
    --secondary-color-soft: rgba(102, 102, 102, 0.14);
    --secondary-color-dark: #444;
    --secondary-color-dark-hover: #333;
    --secondary-color-dark-soft: rgba(68, 68, 68, 0.14);
    --secondary-color-light: #777;
    --secondary-color-light-hover: #666;
    --secondary-color-light-soft: rgba(119, 119, 119, 0.14);

    --warning-color: #f0ad4e;
    --warning-color-hover: #ec971f;
    --warning-color-soft: rgba(240, 173, 78, 0.14);
    --warning-color-dark: #d9831f;
    --warning-color-dark-hover: #c9771b;
    --warning-color-dark-soft: rgba(217, 131, 31, 0.14);
    --warning-color-light: #f0ad4e;
    --warning-color-light-hover: #ec971f;
    --warning-color-light-soft: rgba(240, 173, 78, 0.14);

    --success-color: #5cb85c;
    --success-color-hover: #4cae4c;
    --success-color-soft: rgba(92, 184, 92, 0.14);
    --success-color-dark: #449d44;
    --success-color-dark-hover: #398439;
    --success-color-dark-soft: rgba(57, 132, 57, 0.14);
    --success-color-light: #5cb85c;
    --success-color-light-hover: #4cae4c;
    --success-color-light-soft: rgba(92, 184, 92, 0.14);

    --danger-color: #ff6b61;
    --danger-color-hover: #ff857c;
    --danger-color-soft: rgba(255, 107, 97, 0.18);
    --danger-color-dark: #e5534b;
    --danger-color-dark-hover: #cc4740;
    --danger-color-dark-soft: rgba(229, 83, 75, 0.18);
    --danger-color-light: #ff8a82;
    --danger-color-light-hover: #ff6b61;
    --danger-color-light-soft: rgba(255, 138, 130, 0.18);

    --info-color: #5bc0de;
    --info-color-hover: #46b8da;
    --info-color-soft: rgba(91, 192, 222, 0.14);
    --info-color-dark: #46b8da;
    --info-color-dark-hover: #31b0d5;
    --info-color-dark-soft: rgba(70, 184, 218, 0.14);
    --info-color-light: #5bc0de;
    --info-color-light-hover: #46b8da;
    --info-color-light-soft: rgba(91, 192, 222, 0.14);

    --theme-bg: #222;
    --theme-bg-elevated: #222;
    --theme-bg-panel: #2a2a2a;
    --theme-bg-input: #fff;
    --theme-bg-sidebar: #333;
    --theme-bg-sidebar-item: #222;
    --theme-bg-sidebar-hover: #555;
    --theme-bg-sidebar-active: #1a4f7a;
    --theme-text-sidebar-active: #fff;
    --theme-bg-sidebar-group: #222;
    --theme-text-sidebar: #efefee;
    --theme-text-sidebar-muted: #999;
    --theme-text-sidebar-group: #7ec8f5;
    --theme-border-sidebar: #111;

    --theme-bg-logo: #555;
    --theme-logo-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    --theme-bg-clock: #333;
    --theme-text-clock: #7ec8f5;
    --theme-border-clock: #555;
    --theme-bg-shop: #444;
    --theme-text-shop: #ffffff;
    --theme-border-shop: #666;
    --theme-bg-reserve: #444;
    --theme-bg-top: #333;
    --theme-bg-menu: #333;
    --theme-bg-table-header: #000;
    --theme-bg-table-row: #666;
    --theme-bg-table-hover: #444;
    --theme-bg-card: rgba(181, 191, 206, 0.06);

    --theme-text: #efefee;
    --theme-text-muted: #999;
    --theme-text-title: #fff;
    --theme-text-link: #5eb0e8;
    --theme-text-table: #efefee;
    --theme-text-on-accent: #fff;

    --theme-border: #555;
    --theme-border-soft: rgba(127, 140, 160, 0.28);
    --theme-tree-line: #4a5a70;

    --theme-accent: #3a8fd4;
    --theme-accent-hover: #5eb0e8;
    --theme-accent-soft: rgba(58, 143, 212, 0.25);

    --theme-btn-default-bg: #3d3d3d;
    --theme-btn-default-border: #555;
    --theme-btn-default-text: #efefee;
    --theme-btn-default-hover-bg: #4a4a4a;
    --theme-btn-default-hover-text: #fff;
    --theme-btn-secondary-bg: #888;
    --theme-btn-secondary-hover: #3d4650;
    --theme-btn-secondary-text: #fff;
    --theme-btn-danger-bg: #e5534b;
    --theme-btn-danger-hover: #ff6b61;
    --theme-btn-danger-text: #fff;
    --theme-btn-warning-bg: #f0ad4e;
    --theme-btn-warning-hover: #ec971f;
    --theme-btn-warning-text: #111;
    --theme-btn-success-bg: var(--success-color);
    --theme-btn-success-hover: var(--success-color-hover);
    --theme-btn-success-text: #fff;
    --theme-btn-info-bg: var(--info-color);
    --theme-btn-info-hover: var(--info-color-hover);
    --theme-btn-info-text: #fff;
    --theme-btn-focus-ring: rgba(58, 143, 212, 0.35);

    --theme-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    --theme-particle-dot: #777;
    --theme-particle-line: #777;

    --theme-logo-filter: none;

    --theme-font: 'Pretendard Nums', 'Pretendard Variable', sans-serif;

    --theme-table-border: #666;
    --theme-table-header-bg: #444;
    --theme-table-header-text: #fff;
    --theme-table-header-bg2: #223344;
    --theme-table-header-text2: #fff;
    --theme-table-header-bg3: #332255;
    --theme-table-header-text3: #fff;
    --theme-table-header-font-weight: 600;
    --theme-table-header-font-size: 14px;
    --theme-table-row-bg: #111;
    --theme-table-row-text: #fff;
    --theme-table-row-hover-bg: #777;
    --theme-table-row-hover-text: #fff;
    --theme-table-row-active-bg: #555;
    --theme-table-row-active-text: #fff;
    --theme-table-row-font-size: 14px;
    --theme-table-row-font-weight: normal;

    --theme-modal-bg: var(--theme-table-row-bg);
    --theme-modal-header-bg: var(--theme-table-header-bg);
    --theme-modal-header-text: var(--theme-table-header-text);
    --theme-modal-footer-bg: var(--theme-table-row-bg);
    --theme-modal-text: var(--theme-table-row-text);
    --theme-modal-border: var(--theme-table-border);
    --theme-modal-backdrop: rgba(0, 0, 0, 0.65);
    --theme-modal-offset-top: 4.5rem;

    --theme-border-radius: 5px;

    --theme-form-input-bg: #404040;
    --theme-form-input-text: #fff;
    --theme-form-input-border: #7d7d7d;
    --theme-form-input-border-radius: 5px;
    --theme-form-input-placeholder-text: #ddd;
    --theme-form-input-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
    --theme-form-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c8c8c8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --theme-form-input-disabled-bg: #e8ebef;
    --theme-form-input-disabled-text: #8a939e;
    --theme-form-input-read-only-bg: #e8ebef;
    --theme-form-input-read-only-text: #8a939e;

    --theme-form-input-group-text-bg: #454545;
    --theme-form-input-group-text-text: #fff;

    --theme-input-on-light-text: #2c3e50;
    --theme-form-accent-soft: rgba(58, 143, 212, 0.14);
    --theme-search-addon-bg: rgba(34, 34, 34, 0.92);

    --font-size-base: 14px;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 20px;
    --font-size-xxxl: 22px;
    --font-size-xxxxl: 24px;
    --font-size-xxxxxl: 26px;
    --font-size-xxxxxxl: 28px;
}

:root,
[data-theme="light"] {
    color-scheme: light;

    --primary-color: #3a8fd4;
    --primary-color-hover: #2a6fad;
    --primary-color-soft: rgba(58, 143, 212, 0.14);
    --primary-color-dark: #1a4f7a;
    --primary-color-dark-hover: #143d5e;
    --primary-color-dark-soft: rgba(26, 79, 122, 0.14);
    --primary-color-light: #5eb0e8;
    --primary-color-light-hover: #3a8fd4;
    --primary-color-light-soft: rgba(94, 176, 232, 0.14);

    --secondary-color: #666;
    --secondary-color-hover: #555;
    --secondary-color-soft: rgba(102, 102, 102, 0.14);
    --secondary-color-dark: #444;
    --secondary-color-dark-hover: #333;
    --secondary-color-dark-soft: rgba(68, 68, 68, 0.14);
    --secondary-color-light: #777;
    --secondary-color-light-hover: #666;
    --secondary-color-light-soft: rgba(119, 119, 119, 0.14);

    --warning-color: #f0ad4e;
    --warning-color-hover: #ec971f;
    --warning-color-soft: rgba(240, 173, 78, 0.14);
    --warning-color-dark: #d9831f;
    --warning-color-dark-hover: #c9771b;
    --warning-color-dark-soft: rgba(217, 131, 31, 0.14);
    --warning-color-light: #f0ad4e;
    --warning-color-light-hover: #ec971f;
    --warning-color-light-soft: rgba(240, 173, 78, 0.14);

    --success-color: #5cb85c;
    --success-color-hover: #4cae4c;
    --success-color-soft: rgba(92, 184, 92, 0.14);
    --success-color-dark: #449d44;
    --success-color-dark-hover: #398439;
    --success-color-dark-soft: rgba(57, 132, 57, 0.14);
    --success-color-light: #5cb85c;
    --success-color-light-hover: #4cae4c;
    --success-color-light-soft: rgba(92, 184, 92, 0.14);

    --info-color: #5bc0de;
    --info-color-hover: #46b8da;
    --info-color-soft: rgba(91, 192, 222, 0.14);
    --info-color-dark: #46b8da;
    --info-color-dark-hover: #31b0d5;
    --info-color-dark-soft: rgba(70, 184, 218, 0.14);
    --info-color-light: #5bc0de;
    --info-color-light-hover: #46b8da;
    --info-color-light-soft: rgba(91, 192, 222, 0.14);

    --danger-color: #d9534f;
    --danger-color-hover: #c9302c;
    --danger-color-soft: rgba(217, 83, 79, 0.14);
    --danger-color-dark: #a92825;
    --danger-color-dark-hover: #952421;
    --danger-color-dark-soft: rgba(169, 40, 37, 0.14);
    --danger-color-light: #d9534f;
    --danger-color-light-hover: #c9302c;
    --danger-color-light-soft: rgba(217, 83, 79, 0.14);

    --theme-bg: #f4f5f7;
    --theme-bg-elevated: #ffffff;
    --theme-bg-panel: #ffffff;
    --theme-bg-input: #ffffff;
    --theme-bg-sidebar: #ffffff;
    --theme-bg-sidebar-item: #ffffff;
    --theme-bg-sidebar-hover: #eef2f6;
    --theme-bg-sidebar-active: #d6eaf8;
    --theme-text-sidebar-active: #1a4f7a;
    --theme-bg-sidebar-group: #666;
    --theme-text-sidebar: #1a2332;
    --theme-text-sidebar-muted: #4a5568;
    --theme-text-sidebar-group: #6bb8eb;
    --theme-border-sidebar: #d0d5dd;

    --theme-bg-logo: #ffffff;
    --theme-logo-shadow: inset 0 0 10px rgba(0, 0, 0, 0.12);
    --theme-bg-clock: #ccc;
    --theme-text-clock: #1a4f7a;
    --theme-border-clock: #d0d5dd;
    --theme-bg-shop: #f0f2f5;
    --theme-text-shop: #1a2332;
    --theme-border-shop: #d0d5dd;
    --theme-bg-reserve: #f4f5f7;
    --theme-bg-top: #ffffff;
    --theme-bg-menu: #ffffff;
    --theme-bg-table-header: #1a2332;
    --theme-bg-table-row: #ffffff;
    --theme-bg-table-hover: #ffffcc;
    --theme-bg-card: #ffffff;

    --theme-text: #222;
    --theme-text-muted: #4a5568;
    --theme-text-title: #111827;
    --theme-text-link: #1a4f7a;
    --theme-text-table: #1a2332;
    --theme-text-on-accent: #fff;

    --theme-border: #d0d5dd;
    --theme-border-soft: rgba(80, 90, 105, 0.22);
    --theme-tree-line: #b0bac8;

    --theme-accent: #3a8fd4;
    --theme-accent-hover: #2a6fad;
    --theme-accent-soft: rgba(58, 143, 212, 0.2);

    --theme-btn-default-bg: #ffffff;
    --theme-btn-default-border: #d0d5dd;
    --theme-btn-default-text: #1a2332;
    --theme-btn-default-hover-bg: #eef2f6;
    --theme-btn-default-hover-text: #1a2332;
    --theme-btn-secondary-bg: #888;
    --theme-btn-secondary-hover: #5a6268;
    --theme-btn-secondary-text: #fff;
    --theme-btn-danger-bg: #d9534f;
    --theme-btn-danger-hover: #c9302c;
    --theme-btn-danger-text: #fff;
    --theme-btn-warning-bg: #f0ad4e;
    --theme-btn-warning-hover: #ec971f;
    --theme-btn-warning-text: #111;
    --theme-btn-success-bg: var(--success-color);
    --theme-btn-success-hover: var(--success-color-hover);
    --theme-btn-success-text: #fff;
    --theme-btn-info-bg: var(--info-color);
    --theme-btn-info-hover: var(--info-color-hover);
    --theme-btn-info-text: #fff;
    --theme-btn-focus-ring: rgba(58, 143, 212, 0.35);

    --theme-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    --theme-particle-dot: #afafaf;
    --theme-particle-line: #afafaf;

    --theme-font: 'Pretendard Nums', 'Pretendard Variable', sans-serif;

    --theme-table-border: #555;
    --theme-table-header-bg: #eee;
    --theme-table-header-text: #222;
    --theme-table-header-bg2: #bbd4e8;
    --theme-table-header-text2: #222;
    --theme-table-header-bg3: #bbccdd;
    --theme-table-header-text3: #222;
    --theme-table-header-font-weight: 600;
    --theme-table-header-font-size: 14px;
    --theme-table-row-bg: #fff;
    --theme-table-row-text: #222;
    --theme-table-row-hover-bg: #eef2f6;
    --theme-table-row-hover-text: #222;
    --theme-table-row-active-bg: rgba(94, 176, 232, 0.14);
    --theme-table-row-active-text: #222;
    --theme-table-row-font-size: 14px;
    --theme-table-row-font-weight: normal;

    --theme-modal-bg: var(--theme-table-row-bg);
    --theme-modal-header-bg: var(--theme-table-header-bg);
    --theme-modal-header-text: var(--theme-table-header-text);
    --theme-modal-footer-bg: var(--theme-table-row-bg);
    --theme-modal-text: var(--theme-table-row-text);
    --theme-modal-border: var(--theme-table-border);
    --theme-modal-backdrop: rgba(15, 23, 42, 0.45);
    --theme-modal-offset-top: 4.5rem;

    --theme-border-radius: 5px;

    --theme-form-input-bg: #fff;
    --theme-form-input-text: #222;
    --theme-form-input-border: #b8c0cc;
    --theme-form-input-border-radius: 5px;
    --theme-form-input-placeholder-text: #444;
    --theme-form-input-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.06);
    --theme-form-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23555e6b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --theme-form-input-disabled-bg: #e8ebef;
    --theme-form-input-disabled-text: #8a939e;
    --theme-form-input-read-only-bg: #e8ebef;
    --theme-form-input-read-only-text: #8a939e;

    --theme-form-input-group-text-bg: #fff;
    --theme-form-input-group-text-text: #222;

    --theme-input-on-light-text: #2c3e50;
    --theme-form-accent-soft: rgba(58, 143, 212, 0.12);
    --theme-search-addon-bg: #2c3e50;

}
