 
 

/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 80px;
height: 34px;
}



    /* Hide default HTML checkbox */
    .switch input {
    opacity: 0;
    width: 0;
    height: 0;
    }

    /* The slider */
    .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-gray-1);
    /* -webkit-transition: .4s;
    transition: .4s; */
    border: thick solid var(--btn-img);  
    }

    .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    background-color: var(--btn-img);
    /* -webkit-transition: .4s;
    transition: .4s; */
    }

    input:checked + .slider {
    background-color: var(--btn-img);
    }







    input:focus + .slider {
    box-shadow: 0 0 1px var(--btn-img);
    }

    input:checked + .slider:before {
    -webkit-transform: translateX(46px);
    -ms-transform: translateX(46px);
    transform: translateX(46px);
        background-color: var(--bg-gray-1);
    }

    /* Rounded sliders */
    .slider.round {
    border-radius: 10px;
    }

    .slider.round:before {
    border-radius: 6px;
    } 




    /* On/Off Text */
    .on_off_text {
    position: absolute;
    top: 0px;

    height: 34px;
    line-height: 30px;

    font-size: 14px;
    font-weight: bold;
    color: var(--white);
    pointer-events: none; /* Ignore clicks on the text */
    }

    .on_off_text.on {
    left: 15px; /* Adjust to place "On" text */
    display: none; /* Hidden by default */
    }

    .on_off_text.off {
    left: 35px; /* Adjust to place "Off" text */
    }

    /* Show On text when checked */
    input:checked ~ .on_off_text.on {
    display: block;
    }

    /* Hide Off text when checked */
    input:checked ~ .on_off_text.off {
    display: none;
    }


    .switch {
        transform: scale(0.6);
    }     








label
{
    /* position: relative;
    float: left;
    width: 100%;
    font-size:10px; */
    font-size: 14px;
    color:var(--list-text-1);
}

label.text_label
{
    
    font-size:10px;
    color:var(--light-gray-2);
    position:absolute;
    top: -8px;
}

/* Text Field */
input[type="text"] {

    width: 100%;
    height: 40px;

    line-height: 40px;

    font-size: 14px;
    border: 0px solid var(--border-gray-1);
    border-radius: 5px;
    outline: none;

    color: var(--list-text-1);
    background-color: var(--bg-gray-1);

    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;   
    text-indent: 15px;

}

input[type="text"]:focus {
    background-color: var(--light-gray-1);
    color: var(--black);
}






/* Customized Checkbox Design */
input[type="checkbox"] {
    /* Hide default checkbox */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--btn-img); /* 2px thick border */
    background-color: var(--bg-gray-1); /* Background color */
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    border-radius: 5px;
    margin-right: 10px;
}

/* Style for checked checkbox (shows the dot) */
input[type="checkbox"]:checked {
    background-color: var(--bg-gray-1); /* Background stays the same */
    border: 2px solid var(--btn-img);
}

input[type="checkbox"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--btn-img); /* The dot color */
    border-radius: 3px; /* Makes the dot round */
    transform: translate(-50%, -50%);
}




















/* Wrapper for the select element */
.custom-select {
    position: relative;
    width: 100%;
}

    select {
        width: 100%;
        padding: 8px 40px 8px 12px; /* Padding to make space for the arrow */
        border: 2px solid var(--light-gray-2); /* Border similar to the image */
        background-color: var(--bg-gray-1); /* Dark background color */
        color: var(--border-gray-1); /* Text color */
        font-size: 14px; /* Font size for the dropdown text */
        border-radius: 5px; /* Smooth rounded edges */
        appearance: none; /* Remove default browser appearance */
        -webkit-appearance: none;
        -moz-appearance: none;
        position: relative;
        cursor: pointer; /* Show pointer cursor on hover */
    }

    /* Adding the arrow using the wrapper */
    .custom-select::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid var(--border-gray-1); /* Downward arrow */
        pointer-events: none; /* So the arrow doesn't interfere with clicking */
    }

    /* Change the arrow direction when the select is focused (clicked) */
    .custom-select select:focus + ::after {
        border-top: none;
        border-bottom: 6px solid var(--border-gray-1); /* Upward arrow */
    }

    select:focus {
        border-color: #596066; /* Lighter border when focused */
    }

    /* Dropdown options */
    select option {
        background-color: var(--bg-gray-1); /* Keep the same background for the options */
        color: var(--border-gray-1); /* Color for the text in dropdown options */
        padding: 8px;
        height: 30px;
    }


/* BUTTONS */    

button {
 /* Remove all default button styles */
    appearance: none;
    -webkit-appearance: none; /* Chrome, Safari, iOS */
    -moz-appearance: none;    /* Firefox */
    
    /* Remove border and background */
    border: none;
    background: none;
    
    /* Remove padding and margin */
    padding: 0;
    margin: 0;

    /* Set default font settings */
    font: inherit;
    color: inherit;
    
    /* Remove outline (especially for Firefox) */
    outline: none;

    /* Remove default cursor */
    cursor: pointer;
    
    /* Cross-browser tap highlight color removal for touch devices */
    -webkit-tap-highlight-color: transparent;

    /* Flexibility for dimensions */
    width: auto;
    height: auto;

    /* Optional: Reset text alignment */
    text-align: inherit;

    /* Optional: Remove button shadow */
    box-shadow: none;

    /* Optional: Disable the focus outline */
    -webkit-box-shadow: none;
    -moz-box-shadow: none;

    /* Optional: Ensure buttons resize on mobile properly */
    -webkit-touch-callout: none;

    /* Optional: Make buttons appear flat */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Make the button inline by default */
    display: inline-block;
}



input[type="color"] { 
  appearance: none; /* Remove default styling */
  -webkit-appearance: none; /* For WebKit browsers */
  -moz-appearance: none; /* For Firefox */

  background: none;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
  width: 100%; /* Adjust width as needed */
  height: 100%; /* Adjust height as needed */
  cursor: pointer;
}
input[type="color"]::-moz-color-swatch {
  border: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
}