/*
 * DEEPTASK default light theme color tokens (:root).
 *
 * theme-dark.css mirrors this exact token contract and property order.
 * Switching themes only toggles theme-dark.css's media attribute.
 * Every component stylesheet MUST consume var(--deeptask-*) tokens only.
 */

:root {
    --deeptask-color-scheme: light;
    --deeptask-font-regular: 'SamsungOne-400', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --deeptask-font-emphasis: 'SamsungOne-700', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --deeptask-font-sans: var(--deeptask-font-regular);
    --deeptask-font-serif: 'Times New Roman', Times, serif;
    --deeptask-font-size-mobile: 12px;
    --deeptask-font-size-tablet: 13px;
    --deeptask-font-size-desktop: 15px;
    --deeptask-font-size: var(--deeptask-font-size-mobile);
    --deeptask-floating-label-size-mobile: 7px;
    --deeptask-floating-label-size-tablet: 8px;
    --deeptask-floating-label-size-desktop: 9px;
    --deeptask-floating-label-size: var(--deeptask-floating-label-size-mobile);

    /* Geometry & Layout */
    --deeptask-radius: 12px;
    --deeptask-radius-sm: 8px;
    --deeptask-radius-lg: 18px;
    --deeptask-radius-pill: 999px;
    --deeptask-viewport-inset: 10px;
    --deeptask-card-padding: 20px;
    --deeptask-control-height: 42px;
    --deeptask-button-height: 42px;
    --deeptask-badge-height: 42px;
    --deeptask-input-height: 42px;
    --deeptask-dropdown-radius: 24px;
    --deeptask-color-transparent: transparent;
    --deeptask-control-transition: background 220ms cubic-bezier(.15, .83, .66, 1), border-color 220ms cubic-bezier(.15, .83, .66, 1), box-shadow 220ms cubic-bezier(.15, .83, .66, 1), color 220ms cubic-bezier(.15, .83, .66, 1);
    --deeptask-gap: 12px;
    --deeptask-gap-lg: 20px;
    --deeptask-sidebar-width: 280px;

    /* Surfaces (aligned with EMODIBOK / DeepFile) */
    --deeptask-color-bg: #f7f5f2;
    --deeptask-color-panel: #ffffff;
    --deeptask-color-inset: #f5f3ef;
    --deeptask-color-input-bg: #f5f3ef;
    --deeptask-color-popup-bg: #ffffff;
    --deeptask-color-dropdown-bg: #ffffff;
    --deeptask-color-floating-bg: #ffffff;
    --deeptask-color-disabled-bg: #f3ece8;
    --deeptask-color-border: #e8e3dc;
    --deeptask-color-border-strong: #d5cdc4;

    /* Typography */
    --deeptask-color-text: #1a120f;
    --deeptask-color-text-muted: #5a4d48;
    --deeptask-color-text-soft: #74655f;
    --deeptask-color-text-disabled: #a99892;
    --deeptask-color-text-inverse: #ffffff;
    --deeptask-color-text-on-primary: #ffffff;

    /* Glass Controls & Focus */
    --deeptask-color-glass-background: rgba(26, 18, 15, 0.055);
    --deeptask-color-glass-background-hover: rgba(255, 255, 255, 0.92);
    --deeptask-color-glass-background-active: rgba(255, 109, 41, 0.12);
    --deeptask-color-glass-border: rgba(26, 18, 15, 0.14);
    --deeptask-color-glass-border-hover: rgba(26, 18, 15, 0.26);
    --deeptask-color-glass-border-active: #ff6d29;
    --deeptask-color-glass-text: #1a120f;
    --deeptask-glass-backdrop-filter: none;
    --deeptask-glass-shadow: none;
    --deeptask-glass-shadow-hover: none;
    --deeptask-glass-shadow-active: 0 0 8px 0 rgba(255, 109, 41, 0.28);
    --deeptask-color-active-ring: transparent;
    --deeptask-color-shadow: rgba(42, 26, 18, 0.16);

    /* Hover State (EMODIBOK crisp 1px rim, no hover glow) */
    --deeptask-color-hover-border: #002941;
    --deeptask-color-hover-bg: rgba(0, 41, 65, 0.1);
    --deeptask-color-hover-text: #1a120f;

    /* Brand & Accent */
    --deeptask-color-primary: #ff6d29;
    --deeptask-color-primary-hover: #ff895b;
    --deeptask-color-primary-ink: #8c350e;
    --deeptask-color-primary-soft: #fff0e6;
    --deeptask-color-primary-tint: rgba(255, 109, 41, 0.16);
    --deeptask-color-focus-ring: rgba(255, 137, 91, 0.55);

    /* Semantic Status */
    --deeptask-color-success: #227b4b;
    --deeptask-color-success-bright: #44d17a;
    --deeptask-color-success-soft: rgba(68, 209, 122, 0.16);
    --deeptask-color-success-surface: #e9f8ef;
    --deeptask-color-warning: #936319;
    --deeptask-color-warning-bright: #ffc857;
    --deeptask-color-warning-soft: rgba(255, 200, 87, 0.22);
    --deeptask-color-warning-surface: #fff4d6;
    --deeptask-color-danger: #b62e3e;
    --deeptask-color-danger-bright: #ff6b7a;
    --deeptask-color-danger-soft: rgba(255, 107, 122, 0.16);
    --deeptask-color-danger-surface: #fff0f2;
    --deeptask-color-info: #005b82;
    --deeptask-color-info-surface: #e6f3f9;

    /* Service Type Accents */
    --deeptask-service-photography: #ff6d29;
    --deeptask-service-photography-soft: #fff0e6;
    --deeptask-service-makeup: #c23b7a;
    --deeptask-service-makeup-soft: #fcebf3;
    --deeptask-service-rental: #006d77;
    --deeptask-service-rental-soft: #e6f4f5;
    --deeptask-service-custom: #5a4fcf;
    --deeptask-service-custom-soft: #efedfc;

    /* Google Calendar Official Event Colors (colorId 1..11) */
    --deeptask-gcal-color-1: #7986cb;
    --deeptask-gcal-color-2: #33b679;
    --deeptask-gcal-color-3: #8e24aa;
    --deeptask-gcal-color-4: #e67c73;
    --deeptask-gcal-color-5: #f6bf26;
    --deeptask-gcal-color-6: #f4511e;
    --deeptask-gcal-color-7: #039be5;
    --deeptask-gcal-color-8: #616161;
    --deeptask-gcal-color-9: #3f51b5;
    --deeptask-gcal-color-10: #0b8043;
    --deeptask-gcal-color-11: #d50000;

    /* Connected Stepper Progress Bar */
    --deeptask-step-done: #ff6d29;
    --deeptask-step-active: #ff6d29;
    --deeptask-step-active-ring: rgba(255, 109, 41, 0.24);
    --deeptask-step-pending: #d5cdc4;
    --deeptask-step-line: #e8e3dc;
    --deeptask-step-line-done: #ff6d29;
    --deeptask-step-text-done: #1a120f;
    --deeptask-step-text-pending: #74655f;

    /* Drive Explorer & Upload Queue */
    --deeptask-upload-track: #e8e3dc;
    --deeptask-upload-fill: #ff6d29;
    --deeptask-upload-success: #227b4b;
    --deeptask-upload-error: #b62e3e;
    --deeptask-tree-active-bg: rgba(255, 109, 41, 0.12);
    --deeptask-tree-active-border: #ff6d29;
    --deeptask-color-folder-default: #deb443;
    --deeptask-explorer-border: rgba(26, 18, 15, 0.16);
    --deeptask-explorer-surface: rgba(26, 18, 15, 0.045);

    /* Grid Cards & Document Print */
    --deeptask-card-bg: #ffffff;
    --deeptask-card-border: #e8e3dc;
    --deeptask-paper-bg: #ffffff;
    --deeptask-paper-text: #111111;
    --deeptask-paper-border: #d5cdc4;

    /* Gradients, Overlays & Shadows */
    --deeptask-gradient-app: linear-gradient(145deg, var(--deeptask-color-primary-soft), var(--deeptask-color-bg) 48%);
    --deeptask-color-black: #000000;
    --deeptask-color-image-overlay: rgba(0, 0, 0, 0.78);
    --deeptask-color-overlay: rgba(20, 17, 16, 0.56);
    --deeptask-shadow-sm: 0 2px 8px rgba(42, 26, 18, 0.08);
    --deeptask-shadow-md: 0 10px 24px rgba(42, 26, 18, 0.12);
    --deeptask-shadow-lg: 0 18px 36px rgba(42, 26, 18, 0.16);

    /* Revenue Spline Wave Chart */
    --deeptask-chart-stage-top: #ffffff;
    --deeptask-chart-stage-bottom: #fff0e6;
    --deeptask-chart-footer-bg: #f5f3ef;
    --deeptask-chart-footer-text: #1a120f;
    --deeptask-chart-footer-muted: #74655f;
    --deeptask-chart-line-primary: #ff6d29;
    --deeptask-chart-line-secondary: #227b4b;
    --deeptask-chart-line-shadow: rgba(255, 109, 41, 0.34);
    --deeptask-chart-line-shadow-secondary: rgba(34, 123, 75, 0.26);
    --deeptask-chart-fill-top: rgba(255, 109, 41, 0.22);
    --deeptask-chart-fill-bottom: rgba(255, 240, 230, 0.02);
    --deeptask-chart-fill-secondary-top: rgba(34, 123, 75, 0.18);
    --deeptask-chart-fill-secondary-bottom: rgba(233, 248, 239, 0.02);
    --deeptask-chart-stem: rgba(26, 18, 15, 0.09);
    --deeptask-chart-stem-active: rgba(255, 109, 41, 0.78);
    --deeptask-chart-stem-active-secondary: rgba(34, 123, 75, 0.75);
    --deeptask-chart-dot-core: #ffffff;
    --deeptask-chart-dot-ring-1: rgba(255, 109, 41, 0.34);
    --deeptask-chart-dot-ring-2: rgba(255, 109, 41, 0.14);
    --deeptask-chart-dot-ring-1-secondary: rgba(34, 123, 75, 0.3);
    --deeptask-chart-dot-ring-2-secondary: rgba(34, 123, 75, 0.13);

    /* Transactional Email Palette (resolved server-side by Deeptask_Email_Style_Inliner) */
    --deeptask-email-bg: #ffffff;
    --deeptask-email-surface: #f8fafc;
    --deeptask-email-pill-bg: #f5f7fa;
    --deeptask-email-code-bg: #f1f5f9;
    --deeptask-email-border: #e5edf6;
    --deeptask-email-text: #111827;
    --deeptask-email-text-strong: #0f172a;
    --deeptask-email-text-label: #334155;
    --deeptask-email-text-muted: #475569;
    --deeptask-email-link: #2563eb;
    --deeptask-email-button-bg: #0f766e;
    --deeptask-email-button-text: #ffffff;
}
