/* style.css (add these new rules) */

.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the toggle */
    margin: 20px auto;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    max-width: 140mm; /* Adjust width as needed */
    font-family: sans-serif;
    font-size: 0.95em;
    color: #333;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px; /* Width of the entire switch */
    height: 34px; /* Height of the entire switch */
}

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

/* The slider - background of the switch */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Default background when off */
    -webkit-transition: .4s; /* For smooth transition */
    transition: .4s;
}

/* The circular thumb on the slider */
.slider:before {
    position: absolute;
    content: "";
    height: 26px; /* Height of the thumb */
    width: 26px; /* Width of the thumb */
    left: 4px; /* Initial position from left */
    bottom: 4px; /* Initial position from bottom */
    background-color: white; /* Thumb color */
    -webkit-transition: .4s;
    transition: .4s;
}

/* Change background color when checkbox is checked (toggle is ON) */
input:checked + .slider {
    background-color: #2196F3; /* Blue when ON */
}

/* Move the thumb to the right when checkbox is checked */
input:checked + .slider:before {
    -webkit-transform: translateX(26px); /* Move thumb to the right (width of switch - thumb width - padding) */
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

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

.slider.round:before {
    border-radius: 50%;
}


.icon-button-container {
    display: flex; /* Use flexbox for layout */
    justify-content: right; /* Center buttons horizontally */
}

.icon-button {
    /* Make the button square and center the icon */
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none; /* No border on the button */
    position: relative; /* Needed for tooltip positioning */
    overflow: hidden;
    /* NEW: Button background color */
    background-color: rgba(255, 255, 255, 0);
    /* NEW: Button shadow to make it visible against a white background */
}

.icon-button .material-icons {
    font-size: 28px; /* Larger icon size */
    /* NEW: Icon color */
    color: #444; /* Dark grey */
}

/* Tooltip styles (no changes needed here unless you want different styling) */
.icon-button .tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 0.9em;
    white-space: nowrap;
}

.icon-button .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.icon-button:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}