/* Auto-Mode Toggle Styling */

.auto-toggle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}
.global-mode-toggle {
    padding: 15px 30px;
    width: 100%;
    border: 2px solid #e0e0e0;
}
.auto-toggle-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
}

/* iOS-Style Toggle Switch */
.auto-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.auto-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auto-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.auto-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.auto-toggle-switch input:checked+.auto-toggle-slider {
    background-color: #28a745;
}

.auto-toggle-switch input:checked+.auto-toggle-slider:before {
    transform: translateX(20px);
}

.auto-toggle-switch input:disabled+.auto-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}