/**
 * Hotel ERP - Light Theme
 *
 * Planner template 기반 밝은 테마입니다.
 * Tailwind gray scale 사용, Blue primary 색상.
 *
 * @see design_guide.md
 */

:root,
[data-theme="light"] {
    /* ==========================================
     * Background Colors
     * ========================================== */
    --bg-body: #f9fafb;
    --bg-sidebar: #f9fafb;
    --bg-sidebar-hover: rgba(0, 0, 0, 0.04);
    --bg-sidebar-active: transparent;
    --bg-card: #ffffff;
    --bg-card-hover: #f9fafb;
    --bg-card-active: #f3f4f6;
    --bg-input: #ffffff;
    --bg-input-disabled: #f9fafb;
    --bg-table-header: #f9fafb;
    --bg-table-row-hover: #f9fafb;
    --bg-table-row-striped: #fafafa;
    --bg-dropdown: #ffffff;
    --bg-modal: #ffffff;
    --bg-modal-overlay: rgba(0, 0, 0, 0.4);
    --bg-tooltip: #111827;
    --bg-badge: #f3f4f6;
    --bg-code: #f3f4f6;

    /* Surface Colors (PrimeVue compatibility) */
    --surface-ground: #f9fafb;
    --surface-section: #ffffff;
    --surface-card: #ffffff;
    --surface-hover: #f3f4f6;
    --surface-border: #e5e7eb;
    --surface-200: #e5e7eb;

    /* ==========================================
     * Text Colors
     * ========================================== */
    --text-main: #111827;
    --text-sub: #6b7280;
    --text-muted: #9ca3af;
    --text-disabled: #d1d5db;
    --text-inverse: #ffffff;
    --text-link: #3b82f6;
    --text-link-hover: #2563eb;
    --text-sidebar: #374151;
    --text-sidebar-muted: #6b7280;
    --text-sidebar-active: #3b82f6;
    --text-tooltip: #ffffff;
    --text-placeholder: #9ca3af;

    /* ==========================================
     * Border Colors
     * ========================================== */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    --border-focus: #3b82f6;
    --border-error: #ef4444;

    /* ==========================================
     * Component-Specific Colors
     * ========================================== */

    /* Buttons */
    --btn-primary-bg: #3b82f6;
    --btn-primary-text: #ffffff;
    --btn-primary-hover-bg: #2563eb;
    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #374151;
    --btn-secondary-border: #e5e7eb;
    --btn-secondary-hover-bg: #f9fafb;

    /* Inputs */
    --input-bg: var(--bg-input);
    --input-text: var(--text-main);
    --input-border: #d1d5db;
    --input-focus-border: #3b82f6;
    --input-focus-ring: rgba(59, 130, 246, 0.1);

    /* Tables */
    --table-header-bg: var(--bg-table-header);
    --table-header-text: #374151;
    --table-border: var(--border-color);
    --table-row-hover: var(--bg-table-row-hover);

    /* Cards */
    --card-bg: var(--bg-card);
    --card-border: var(--border-color);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

    /* Modals */
    --modal-bg: var(--bg-modal);
    --modal-border: var(--border-color);
    --modal-shadow: 0 20px 25px rgba(0, 0, 0, 0.08), 0 10px 10px rgba(0, 0, 0, 0.04);

    /* Tabs */
    --tab-bg: transparent;
    --tab-active-bg: transparent;
    --tab-active-border: #3b82f6;
    --tab-text: #6b7280;
    --tab-active-text: #3b82f6;

    /* Badges */
    --badge-default-bg: #f3f4f6;
    --badge-default-text: #6b7280;
    --badge-primary-bg: #dbeafe;
    --badge-primary-text: #1d4ed8;
    --badge-success-bg: #d1fae5;
    --badge-success-text: #047857;
    --badge-danger-bg: #fee2e2;
    --badge-danger-text: #dc2626;
    --badge-warning-bg: #fef3c7;
    --badge-warning-text: #d97706;
    --badge-info-bg: #dbeafe;
    --badge-info-text: #2563eb;
    --badge-secondary-bg: #ede9fe;
    --badge-secondary-text: #6d28d9;
    --badge-orange-bg: #fff7ed;
    --badge-orange-text: #ea580c;

    /* Secondary Colors */
    --secondary: #8b5cf6;
    --secondary-hover: #7c3aed;
    --secondary-light: #ede9fe;
    --secondary-dark: #6d28d9;

    /* Accent Gold */
    --accent-gold: #c9a962;
    --accent-gold-hover: #a8893d;
    --accent-gold-light: rgba(201, 169, 98, 0.15);
    --accent-gold-dark: #8b7335;

    /* Sidebar Active Indicator */
    --sidebar-active-indicator: #3b82f6;

    /* Scrollbar */
    --scrollbar-track: #f3f4f6;
    --scrollbar-thumb: #d1d5db;
    --scrollbar-thumb-hover: #9ca3af;

    /* Focus Ring */
    --focus-ring-color: #3b82f6;
    --focus-ring-offset: 2px;

    /* Selection */
    --selection-bg: rgba(59, 130, 246, 0.15);
    --selection-text: inherit;
}

/* ==========================================
 * Scrollbar Styling
 * ========================================== */
[data-theme="light"] ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ==========================================
 * Selection Styling
 * ========================================== */
[data-theme="light"] ::selection {
    background: var(--selection-bg);
    color: var(--selection-text);
}
