﻿.switch {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 25px;
    border-radius: 20px;
    background: #dfd9ea;
    transition: background 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    cursor: pointer;
}

    .switch::before {
        content: '';
        position: absolute;
        top: 1px;
        left: 2px;
        width: 22px;
        height: 22px;
        background: #fafafa;
        border-radius: 50%;
        transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .switch:active::before {
        box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 0 0 20px rgba(128,128,128,0.1);
    }

input:checked + .switch {
    background: #72da67;
}

    input:checked + .switch::before {
        left: 27px;
        background: #fff;
    }

    input:checked + .switch:active::before {
        box-shadow: 0 2px 8px rgba(0,0,0,0.28), 0 0 0 20px rgba(0,150,136,0.2);
    }


body {
    transition: all 0.5s;
}

.dark {
    background-color: #202124;
    color: #ffffff
}

    .dark .mainTable {
        background-color: #212121
    }

    .dark .tablehead {
        font-weight: bold;
        background: linear-gradient(150deg,#444,#222);
        color: #ffffff !important;
    }

    .dark .gridalternativeitem {
        background-color: #2e2e2e;
        border: #555 1px solid;
        color: #ffffff;
    }

    .dark a {
        color: #66aaff;
    }

        .dark a.special {
            color: #66aaff;
        }

    .dark .gridselecteditem {
        background-color: #3e4a5a;
        border: #555 1px solid;
    }

    .dark .griditem {
        background-color: #2e2e2e;
        border: #555 1px solid;
    }

    .dark .mainTable :is(input:not([type="submit"]),textarea) {
        background-color: #1e1e1e;
        color: #ffffff;
        border: 1px solid #444;
        padding: 5px;
        border-radius: 5px;
        /*font-size:10px;*/
        outline: none;
    }

    .dark .mainTable :is(input:not([type="submit"]):disabled, textarea:disabled) {
        background-color: #2c2c2c; /* Slightly lighter/dimmer */
        color: #888888; /* Dimmed text */
        border: 1px solid #555;
        cursor: not-allowed;
        opacity: 0.6; /* Optional: makes it look more "disabled" */
    }

    .dark .mainTable input:not([type="submit"]):focus {
        border-color: #008cff;
        box-shadow: 0 0 5px rgba(0,140,255,0.5);
    }

    .dark .mainTable input:not([type="submit"])::placeholder {
        color: #888
    }


    .dark .mainTable select {
        background-color: #1e1e1e;
        color: #ffffff;
        border: 1px solid #444;
        padding: 5px;
        border-radius: 5px;
        outline: none;
        /*appearance:none;*/
    }

        .dark .mainTable select:focus {
            border-color: #008cff;
            box-shadow: 0 0 5px rgba(0,140,255,0.5);
        }

    .dark .mainTable .insideTable {
        font-weight: bold;
        background: linear-gradient(150deg,#444,#222);
        color: #ffffff;
    }

    .dark span[id*="UsersLB"] {
        color: #ffffff !important
    }


    .dark .mainTable div[id*=TabContainer1_header] {
        font-weight: bold;
        background: linear-gradient(150deg,#444,#222);
        color: black;
    }

    .dark .mainTable div[id*=TabContainer1_body] {
        background-color: black !important
    }



    .dark .info {
        background-color: darkslategrey;
        font-weight: bold;
        z-index:5;
    }
