:root {
    --body-bg: #fff;
    --body-hover-bg: #f5f5f5;
    --main-bg: inherit;
    --content-bg: #fff;

    --header-bg-solid: #fff;
    --header-bg-transparent: color-mix(in srgb, var(--body-bg) 95%, transparent);
    --header-bg-light-transparent: color-mix(in srgb, var(--body-bg) 92%, transparent);

    --footer-bg: rgba(240, 240, 240, 0.5);

    --elengrab-color: #7eb980;
    --elengrab-color-muted: #7eb980b3;

    --list-body-bg: #f3f5f6;
    --list-main-bg: #fff;
    --grid-body-bg: #fff;
    --grid-main-bg: inherit;

    --text-light: #eee;
    --text-gray: #8b949e;
    --text-light-gray: #cfd8e3;
    --text-blue: #2563eb;
    --text-orange: #f59e0b;
    --text-red: #ef5350;
    --text-red-muted: #e57373;
    
    --icon-visibility-color: #6B7280;

    --back-button-bg: rgba(0, 0, 0, 0.08);

    --main-header-border-color: rgba(0, 0, 0, 0.2);

    --result-bg: inherit;
    --input-bg: white;
    --input-focus-bg: #f5f5f5;
    --bg-format: #f0f0f0;
    --button-bg: #ebebeb;
    --button-hover-color: #333;
    --button-hover-bg: #e4e4e4;
    --bg-select-label: #ebebeb;
    --bg-tooltip: #171717;
    --bg-card: rgba(0, 0, 0, 0.05);
    --text-primary: #333;
    --text-header: #333;
    --text-secondary: #606060;
    --text-muted: #9e9e9e;
    --text-gray-disabled: #f0f0f0;
    --input-action-button-color: #999;
    --input-action-button-hover-color: #333;
    --text-tooltip: white;
    --input-border-color: var(--elengrab-color);
    --input-focus-border-color: #4caf50;
    --border-select: #dfe3e8;
    --border-result: #dfe3e8;
    --search-border-input: #ebebeb;
    --border-shadow: rgba(0,0,0,0.1);
    --download: #4caf50;
    --download-repeat: #ef5350;
    --download-repeat-hover: #ef5350;
    --media-result__channel-play-button: white;
    --media-result__channel-play-button-hover: #4caf50;
    --error: #ef5350;
    --spinner-light: #d0d0d0;
    --spinner-dl-start: #9e9e9e;
    --spinner-dl-downloading: #4caf50;
    --spinner-dl-finish: #4a90e2;
    --server-status-offline: #555;
    --server-status-online: #4caf50;

    --row-block-hover-bg: rgba(80, 140, 255, 0.10);

    --row-menu-button: #6b7280;
    --row-menu-button-hover: #333;
    --row-icon-gray: #6b7280;
    --row-icon-hover-blue: #3b82f6;
    --row-icon-hover-red: #c44b4b;

    --thumbnail-duration-bg: rgba(0, 0, 0, 0.6);
    --thumbnail-duration-color: #fff;
    --thumbnail-watched-bg: rgba(0, 0, 0, 0.65);
    --thumbnail-watched-color: #fff;
    --thumbnail-placeholder-bg: #e8e8e8;

    --watch-progress-bg: rgba(128, 128, 128, 0.5);
    --watch-progress-value-bg: #ff0033;

    --history-loading-spinner-bg: #e5e7eb;
    --history-loading-spinner-color: #6b7280;    

    --video-preview-control-bg: rgba(0, 0, 0, 0.6);
    --video-preview-control-color: #fff;
    --video-preview-duration-bg: rgba(0, 0, 0, 0.6);
    --video-preview-duration-color: #fff;
    --video-preview-watch-progress-bg: rgba(128, 128, 128, 0.5);
    --video-preview-watch-progress-value-bg: #ff0033;
    --video-preview-watch-progress-buffer-bg: rgba(255, 255, 255, 0.35);
   
    --bg-auth-button: #007bff;
    --bg-auth-button-hover: #0056b3;
    --text-auth-button: white;
    --border-auth-input: #9e9e9e;
    --border-auth-input-focus: var(--elengrab-color);

    --notification-bg: rgba(255, 255, 255, 0.92);
    --notification-text: #1f1f1f;
    --notification-border: #e5e5e5;

    --menu-bg: rgba(255, 255, 255, 0.92);
    --menu-box-shadow-color: rgba(0,0,0,0.2);
    --menu-text-color: #333;
    --menu-separator-bg: #9e9e9e;
    --menu-action-icon-red: #c44b4b;
    --menu-action-icon-blue: #3b82f6;
    --menu-action-icon-green: #4caf50;
    --menu-action-icon-violet: #7c3aed;
    --menu-action-icon-orange: #f59e0b;
    --menu-action-icon-cyan-green: #14b8a6;
    --menu-action-hover-bg: rgba(0, 0, 0, 0.08);
    --menu-action-hover-bg-green: rgba(76, 175, 80, 0.2);
    --menu-action-hover-bg-red: rgba(231, 76, 60, 0.2);
    --menu-action-hover-bg-orange: rgba(245, 158, 11, 0.2);
}

.dark {
    --header-bg-solid: #1f1f1f;

    --body-bg: #1f1f1f;
    --body-hover-bg: #292929;
    --main-bg: inherit;
    --content-bg: #1f1f1f;
    --footer-bg: rgba(23, 23, 23, 0.5);

    --list-body-bg: #171717;
    --list-main-bg: #1f1f1f;
    --grid-body-bg: #1f1f1f;
    --grid-main-bg: inherit;
    --auth-body-bg: #171717;
    --auth-main-bg: inherit;

    --back-button-bg: rgba(255, 255, 255, 0.08);

    --text-light: #cfd8e3;
    --text-blue: #60a5fa;

    --icon-visibility-color: #94A3B8;

    --main-header-border-color: rgba(255, 255, 255, 0.2);

    --result-bg: inherit;
    --input-bg: #2c2c2c;
    --input-focus-bg: #2c2c2c;
    --bg-format: #30363d;
    --button-bg: #30363d;
    --button-hover-color: #d6e6fb;
    --button-hover-bg: #3f444b;
    --bg-select-label: #1F1F1F;
    --bg-tooltip: #171717;
    --bg-card: rgba(255, 255, 255, 0.1);
    --text-primary: #cfd8e3;
    --text-header: #cfd8e3;
    --text-secondary: #aaa;
    --text-muted: #6e7681;
    --text-gray-disabled: #f0f0f0;
    --input-action-button-color: #9e9e9e;
    --input-action-button-hover-color: #cfd8e3;
    --text-tooltip: #cfd8e3;
    --input-border-color: var(--elengrab-color);
    --input-focus-border-color: #58d660;
    --border-select: #30363d;
    --border-result: #30363d;
    --search-border-input: #555;
    --input-box-shadow: rgba(0,0,0,0.4);
    --download: #58d660;
    --download-repeat: #ef5350;
    --download-repeat-hover: #ef5350;
    --media-result__channel-play-button: white;
    --media-result__channel-play-button-hover: #4caf50;
    --error: #f85149;
    --spinner-light: #30363d;
    --spinner-accent: #58a6ff;
    --server-status-offline: #8b949e;
    --server-status-online: #58d660;

    --row-block-hover-bg: rgba(80, 140, 255, 0.16);

    --row-menu-button: #6b7280;
    --row-menu-button-hover: #9e9e9e;
    --row-icon-gray: #6b7280;
    --row-icon-hover-blue: #3b82f6;
    --row-icon-hover-red: #c44b4b;

    --thumbnail-placeholder-bg: #2a2a2a;

    --history-loading-spinner-bg: #374151;
    --history-loading-spinner-color: #9ca3af;

    --bg-auth-button: #007bff;
    --bg-auth-button-hover: #0056b3;
    --text-auth-button: white;
    --border-auth-input: #6e7681;
    --border-auth-input-focus: var(--elengrab-color);

    --notification-bg: rgba(12, 12, 16, 0.90);
    --notification-text: #cfd8e3;
    --notification-border: rgba(255, 255, 255, 0.35);

    --menu-bg: rgba(12, 12, 16, 0.80);
    --menu-text-color: #cfd8e3;
    --menu-separator-bg: #6e7681;
    --menu-action-hover-bg: rgba(255, 255, 255, 0.1);
    --menu-action-hover-bg-red: rgba(231, 76, 60, 0.2);
    --menu-action-icon-red: #c44b4b;
    --menu-action-icon-blue: #3b82f6;
    --menu-action-icon-green: #4caf50;
    --menu-action-icon-violet: #7c3aed;

    --scrollbar-track-bg: #3e3e3e;
    --scrollbar-thumb-bg: #606060;
    --scrollbar-thumb-hover-bg: #707070;
}

/* ==================== components ==================== */

:root {
    --view-mode-tab-bg: #f2f2f2;
    --view-mode-tab-color: #0f0f0f;
    --view-mode-tab-hover-bg: #e5e5e5;
    --view-mode-tab-active-bg: #0f0f0f;
    --view-mode-tab-active-color: #fff;

    --action-copy-icon: var(--text-secondary);
    --action-copy-icon-hover: var(--text-primary);
    --action-copy-icon-accent: #10b981;

    --content-type-text: var(--text-secondary);
    --content-type-text-hover: var(--text-primary);
    --content-type-text-active: #0f0f0f;
    --content-type-indicator-bg: #0f0f0f;
    --content-type-indicator-hover-bg: var(--text-secondary);
    --content-type-border-color: rgba(0, 0, 0, 0.2);;
    --content-type-focus: #065fd4;
}

.dark {
    --view-mode-tab-bg: #272727;
    --view-mode-tab-color: #f1f1f1;
    --view-mode-tab-hover-bg: #3f3f3f;
    --view-mode-tab-active-bg: #f1f1f1;
    --view-mode-tab-active-color: #0f0f0f;

    --content-type-text-active: #fff;
    --content-type-indicator-bg: #fff;
    --content-type-border-color: rgba(255, 255, 255, 0.2);
    --content-type-focus: #3ea6ff;
}

/* ==================== Menu ==================== */

:root {
    --upload-menu-badge-bg: var(--header-bg);
    --upload-menu-badge-color: var(--download);
}
