/*
 * DEEPTASK dark theme color tokens (:root).
 *
 * Mirrors theme-light.css with identical variable names and property order.
 * Switching themes only toggles this stylesheet's media attribute.
 */

:root {
    --deeptask-color-scheme: dark;
    --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 Dark) */
    --deeptask-color-bg: #171818;
    --deeptask-color-panel: #212323;
    --deeptask-color-inset: #292b2b;
    --deeptask-color-input-bg: #262626;
    --deeptask-color-popup-bg: #1c1e1e;
    --deeptask-color-dropdown-bg: #212323;
    --deeptask-color-floating-bg: #1c1e1e;
    --deeptask-color-disabled-bg: #1a1919;
    --deeptask-color-border: #383a38;
    --deeptask-color-border-strong: #4d504e;

    /* Typography */
    --deeptask-color-text: #fff7f2;
    --deeptask-color-text-muted: #c7bab4;
    --deeptask-color-text-soft: #a99892;
    --deeptask-color-text-disabled: #756968;
    --deeptask-color-text-inverse: #1a120f;
    --deeptask-color-text-on-primary: #ffffff;

    /* Glass Controls & Focus */
    --deeptask-color-glass-background: rgba(255, 255, 255, 0.055);
    --deeptask-color-glass-background-hover: rgba(255, 255, 255, 0.09);
    --deeptask-color-glass-background-active: rgba(255, 109, 41, 0.12);
    --deeptask-color-glass-border: rgba(255, 255, 255, 0.12);
    --deeptask-color-glass-border-hover: rgba(255, 255, 255, 0.24);
    --deeptask-color-glass-border-active: #ff6d29;
    --deeptask-color-glass-text: #fff7f2;
    --deeptask-glass-backdrop-filter: none;
    --deeptask-glass-shadow: none;
    --deeptask-glass-shadow-hover: none;
    --deeptask-glass-shadow-active: 0 0 10px 0 rgba(255, 109, 41, 0.34);
    --deeptask-color-active-ring: transparent;
    --deeptask-color-shadow: rgba(0, 0, 0, 0.38);

    /* Hover State (EMODIBOK Dark crisp 1px rim) */
    --deeptask-color-hover-border: #b6dfed;
    --deeptask-color-hover-bg: rgba(182, 223, 237, 0.1);
    --deeptask-color-hover-text: #fff7f2;

    /* Brand & Accent */
    --deeptask-color-primary: #ff6d29;
    --deeptask-color-primary-hover: #ff895b;
    --deeptask-color-primary-ink: #ffac80;
    --deeptask-color-primary-soft: #38271d;
    --deeptask-color-primary-tint: rgba(255, 109, 41, 0.2);
    --deeptask-color-focus-ring: rgba(255, 137, 91, 0.62);

    /* Semantic Status */
    --deeptask-color-success: #69e69a;
    --deeptask-color-success-bright: #44d17a;
    --deeptask-color-success-soft: rgba(68, 209, 122, 0.18);
    --deeptask-color-success-surface: #173728;
    --deeptask-color-warning: #ffd57b;
    --deeptask-color-warning-bright: #ffc857;
    --deeptask-color-warning-soft: rgba(255, 200, 87, 0.18);
    --deeptask-color-warning-surface: #493918;
    --deeptask-color-danger: #ff8f9a;
    --deeptask-color-danger-bright: #ff6b7a;
    --deeptask-color-danger-soft: rgba(255, 107, 122, 0.2);
    --deeptask-color-danger-surface: #482329;
    --deeptask-color-info: #8fd3f4;
    --deeptask-color-info-surface: #173444;

    /* Service Type Accents */
    --deeptask-service-photography: #ff895b;
    --deeptask-service-photography-soft: #38271d;
    --deeptask-service-makeup: #f07cb2;
    --deeptask-service-makeup-soft: #3c1e2e;
    --deeptask-service-rental: #5cd6df;
    --deeptask-service-rental-soft: #16373b;
    --deeptask-service-custom: #a59bff;
    --deeptask-service-custom-soft: #282447;

    /* 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: #8d8d8d;
    --deeptask-gcal-color-9: #5c6bc0;
    --deeptask-gcal-color-10: #0b8043;
    --deeptask-gcal-color-11: #ef5350;

    /* Connected Stepper Progress Bar */
    --deeptask-step-done: #ff6d29;
    --deeptask-step-active: #ff895b;
    --deeptask-step-active-ring: rgba(255, 109, 41, 0.34);
    --deeptask-step-pending: #4d504e;
    --deeptask-step-line: #383a38;
    --deeptask-step-line-done: #ff6d29;
    --deeptask-step-text-done: #fff7f2;
    --deeptask-step-text-pending: #a99892;

    /* Drive Explorer & Upload Queue */
    --deeptask-upload-track: #383a38;
    --deeptask-upload-fill: #ff6d29;
    --deeptask-upload-success: #69e69a;
    --deeptask-upload-error: #ff8f9a;
    --deeptask-tree-active-bg: rgba(255, 109, 41, 0.16);
    --deeptask-tree-active-border: #ff6d29;
    --deeptask-color-folder-default: #deb443;
    --deeptask-explorer-border: rgba(255, 255, 255, 0.14);
    --deeptask-explorer-surface: rgba(255, 255, 255, 0.055);

    /* Grid Cards & Document Print */
    --deeptask-card-bg: #212323;
    --deeptask-card-border: #383a38;
    --deeptask-paper-bg: #ffffff;
    --deeptask-paper-text: #111111;
    --deeptask-paper-border: #4d504e;

    /* 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(0, 0, 0, 0.66);
    --deeptask-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.36);
    --deeptask-shadow-md: 0 10px 24px rgba(0, 0, 0, 0.42);
    --deeptask-shadow-lg: 0 18px 36px rgba(0, 0, 0, 0.5);

    /* Revenue Spline Wave Chart */
    --deeptask-chart-stage-top: #262220;
    --deeptask-chart-stage-bottom: #1d1a18;
    --deeptask-chart-footer-bg: #171818;
    --deeptask-chart-footer-text: #fff7f2;
    --deeptask-chart-footer-muted: #a99892;
    --deeptask-chart-line-primary: #ff895b;
    --deeptask-chart-line-secondary: #69e69a;
    --deeptask-chart-line-shadow: rgba(255, 109, 41, 0.42);
    --deeptask-chart-line-shadow-secondary: rgba(105, 230, 154, 0.32);
    --deeptask-chart-fill-top: rgba(255, 109, 41, 0.28);
    --deeptask-chart-fill-bottom: rgba(255, 109, 41, 0.02);
    --deeptask-chart-fill-secondary-top: rgba(105, 230, 154, 0.22);
    --deeptask-chart-fill-secondary-bottom: rgba(105, 230, 154, 0.02);
    --deeptask-chart-stem: rgba(255, 247, 242, 0.09);
    --deeptask-chart-stem-active: rgba(255, 137, 91, 0.85);
    --deeptask-chart-stem-active-secondary: rgba(105, 230, 154, 0.82);
    --deeptask-chart-dot-core: #fff7f2;
    --deeptask-chart-dot-ring-1: rgba(255, 137, 91, 0.38);
    --deeptask-chart-dot-ring-2: rgba(255, 137, 91, 0.16);
    --deeptask-chart-dot-ring-1-secondary: rgba(105, 230, 154, 0.34);
    --deeptask-chart-dot-ring-2-secondary: rgba(105, 230, 154, 0.14);

    /* Transactional Email Palette (mirrors theme-light.css contract 1-to-1) */
    --deeptask-email-bg: #171818;
    --deeptask-email-surface: #212323;
    --deeptask-email-pill-bg: #292b2b;
    --deeptask-email-code-bg: #262626;
    --deeptask-email-border: #383a38;
    --deeptask-email-text: #fff7f2;
    --deeptask-email-text-strong: #ffffff;
    --deeptask-email-text-label: #c7bab4;
    --deeptask-email-text-muted: #a99892;
    --deeptask-email-link: #8fd3f4;
    --deeptask-email-button-bg: #0f766e;
    --deeptask-email-button-text: #ffffff;
}