.mode-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    direction: ltr; /* Ensure toggle is LTR even on RTL page */
    font-family: sans-serif;
}

.toggle-label {
    margin: 0 10px;
    font-size: 14px;
    color: #888;
    transition: color 0.3s ease;
    cursor: default;
}

.toggle-label.active {
    color: #333;
    font-weight: bold;
}

/* The switch - a wrapper for the checkbox and the slider */
.mode-toggle-container .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

/* Hide the default HTML checkbox */
.mode-toggle-container .switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

/* The slider */
.mode-toggle-container .slider {
    position: absolute !important;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.mode-toggle-container .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

.mode-toggle-container input:checked + .slider {
    background-color: #2563eb; /* Blue-600 */
}

.mode-toggle-container input:focus + .slider {
    box-shadow: 0 0 1px #2563eb;
}

.mode-toggle-container input:checked + .slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

/* Rounded sliders */
.mode-toggle-container .slider.round {
    border-radius: 28px;
}

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

.signup-prompt {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.signup-prompt p {
    margin-bottom: 0.75rem;
    color: #6c757d;
}

.signup-prompt .btn-signup {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 0.3rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.signup-prompt .btn-signup:hover {
    background-color: #218838;
}
