:root, :host {
    --kpxc-background-color: #fff;
    --kpxc-card-background-color: #fff;
    --kpxc-card-border-color: rgba(0,0,0,.125);
    --kpxc-card-header-color: #fafafa;
    --kpxc-checkbox-color: #5b5b5d;
    --kpxc-container-border: 1px solid #ccc;
    --kpxc-input-active-border-color: #2b4d1a;
    --kpxc-input-background-color: #fff;
    --kpxc-input-border: 1px solid #2b4d1a;
    --kpxc-input-border-color: #292a2a;
    --kpxc-input-main-border-color: rgba(0,0,0,.125);
    --kpxc-link-color: #3a8233;
    --kpxc-link-hover-color: #429f14;
    --kpxc-sidebar-background-color: #27272a;
    --kpxc-table-border-color: rgb(222, 226, 230);
    --kpxc-table-hover-color: #f2f2f2;
    --kpxc-table-odd-color: #f2f2f2;
    --kpxc-text-color: #000;
}

@media (prefers-color-scheme: dark) {
    :root, :host {
        --kpxc-background-color: #3b3b3d;
        --kpxc-card-background-color: #2b2a2a;
        --kpxc-card-border-color: #292a2a;
        --kpxc-card-header-color: #27272a;
        --kpxc-checkbox-color: #3b3b3d;
        --kpxc-container-border: 1px solid #000;
        --kpxc-input-active-border-color: #2b4d1a;
        --kpxc-input-background-color: #27272a;
        --kpxc-input-border: 1px solid #2b4d1a;
        --kpxc-input-border-color: #292a2a;
        --kpxc-input-main-border-color: #3b3d3c;
        --kpxc-link-color: #6cac4d;
        --kpxc-link-hover-color: #429f14;
        --kpxc-table-border-color: #a0a0a0;
        --kpxc-table-hover-color: #474948;
        --kpxc-table-odd-color: #3b3d3c;
        --kpxc-text-color: #cbcfcb;
    }
}

/* Same colors for manual switching */
[data-color-theme='dark'] {
    --kpxc-background-color: #3b3b3d;
    --kpxc-card-background-color: #2b2a2a;
    --kpxc-card-border-color: #292a2a;
    --kpxc-card-header-color: #27272a;
    --kpxc-checkbox-color: #3b3b3d;
    --kpxc-container-border: 1px solid #000;
    --kpxc-input-active-border-color: #2b4d1a;
    --kpxc-input-background-color: #27272a;
    --kpxc-input-border: 1px solid #2b4d1a;
    --kpxc-input-border-color: #292a2a;
    --kpxc-input-main-border-color: #3b3d3c;
    --kpxc-link-color: #6cac4d;
    --kpxc-link-hover-color: #429f14;
    --kpxc-table-border-color: #a0a0a0;
    --kpxc-table-hover-color: #474948;
    --kpxc-table-odd-color: #3b3b3d;
    --kpxc-text-color: #cbcfcb;
}

[data-color-theme='light'] {
    --kpxc-background-color: #fff;
    --kpxc-card-background-color: #fff;
    --kpxc-card-border-color: rgba(0,0,0,.125);
    --kpxc-card-header-color: #fafafa;
    --kpxc-checkbox-color: #5b5b5d;
    --kpxc-container-border: 1px solid #ccc;
    --kpxc-input-active-border-color: #2b4d1a;
    --kpxc-input-background-color: #fff;
    --kpxc-input-border: 1px solid #2b4d1a;
    --kpxc-input-border-color: #292a2a;
    --kpxc-input-main-border-color: rgba(0,0,0,.125);
    --kpxc-link-color: #3a8233;
    --kpxc-link-hover-color: #429f14;
    --kpxc-table-border-color: rgb(222, 226, 230);
    --kpxc-table-hover-color: #f2f2f2;
    --kpxc-table-odd-color: #f2f2f2;
    --kpxc-text-color: #000;
}
