﻿:root {
    --theme-color: initial;
    /* Change this to switch the color everywhere */
    --text-color: white;
}
:root {
    transition: all 0.3s ease-in-out;
}

.cls-button,
#pageHeader,
footer,
.popup-header {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header inside any child container */
div.cls-child-header {
    color: var(--theme-color);
    position: relative;
    top: 8px;
    left: -15px;
    width: 100%;
    font-size: 12px;
    font-weight: bold;
    padding-left: 5px;
}
.bg-danger {
    background-color: var(--theme-color) !important;
    color: var(--text-color) !important;
}

/* Buttons */
.cls-button {
    background-color: var(--theme-color);
    border: 1px solid var(--text-color);
    color: var(--text-color) !important;
}

    .cls-button:hover {
        background-color: var(--theme-color);
        color: var(--text-color) !important;
    }

/* Popup Header */
.popup-header {
    background-color: var(--theme-color);
    padding: 3px;
    color: var(--text-color);
}

/* Table headers */
.table-condensed tr th {
    border: 0px solid #6e7bd9;
    color: var(--text-color);
    background-color: var(--theme-color);
}
/* For table rows inside modals on hover */
.modal table tr:hover {
    background-color: var(--theme-color) !important;
    color: var(--text-color) !important;
    cursor: pointer !important;
}

.table-condensed tr:hover {
    background-color: var(--theme-color) !important;
    color: var(--text-color) !important;
    cursor: pointer !important;
}

/* Page Header */
#pageHeader {
    background-color: var(--theme-color);
    border: 0px !important;
}

/* Footer */
footer {
    text-align: center;
    background-color: var(--theme-color);
    color: var(--text-color);
}
#dvSettings {
    background-color: var(--theme-color);
}

.color-switcher {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 9999;
}

.color-option {
    width: 25px;
    height: 25px;
    margin: 8px 0;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .color-option:hover {
        transform: scale(1.2);
    }
html {
    --theme-color: #f73d46;
}


#themeToggleWrapper {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
}

#themeToggleBtn {
    background: #fff;
    border-radius: 10px 0 0 10px;
    padding: 10px;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

    #themeToggleBtn:hover {
        background: #f0f0f0;
    }

    #themeToggleBtn i {
        font-size: 20px;
        color: var(--theme-color);
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.theme-icon-switcher {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px 0 0 12px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    padding: 10px 8px;
    display: none; /* hidden by default */
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

    .theme-icon-switcher.active {
        display: flex;
    }

.color-icon {
    font-size: 24px;
    padding: 8px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .color-icon:hover {
        transform: scale(1.2);
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    }

    .color-icon[data-color="#f73d46"] {
        background-color: #f73d46;
    }

    .color-icon[data-color="#1a5490"] {
        background-color: #1a5490;
    }

    .color-icon[data-color="#047329"] {
        background-color: #047329;
    }

    .color-icon[data-color="#83038f"] {
        background-color: #83038f;
    }


