/* Custom styles for the settings page */
.unifiedsmb-warning-text {
    display: inline-flex;
    align-items: center;
    color: var(--usmb-red);
    font-weight: 500;
}

.unifiedsmb-warning-text .dashicons {
    margin-right: 4px;
    color: var(--usmb-red);
}

.unifiedsmb-status-active {
    color: var(--usmb-green);
}

/* Slider checkbox base container */
.unifiedsmb-switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Reduced from 60px to 40px */
    height: 24px; /* Reduced from 34px to 24px */
}

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

/* The slider */
.unifiedsmb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px; /* Adjusted for consistent border radius */
}

.unifiedsmb-slider:before {
    position: absolute;
    content: "";
    height: 18px; /* Reduced from 26px to 18px */
    width: 18px; /* Reduced from 26px to 18px */
    left: 3px; /* Adjusted from 4px to fit smaller size */
    bottom: 3px; /* Adjusted from 4px to fit smaller size */
    background-color: white;
    transition: .4s;
    border-radius: 50%; /* Ensures the toggle is perfectly round */
}

input:checked + .unifiedsmb-slider {
    background-color: #2196F3;
}

input:focus + .unifiedsmb-slider {
    box-shadow: 0 0 1px #2196F3;
}
    
input:checked + .unifiedsmb-slider:before {
    transform: translateX(18px); /* Adjust translation to match the new width */
}