/* Custom Switch Styles */
.form-check-custom.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    border-radius: 3rem;
    background-color: #6c757d;
    border: none;
    transition: all 0.3s ease;
}

.form-check-custom.form-switch .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-check-custom.form-switch .form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-custom.form-switch .form-check-input:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Enhanced badge styling for switches */
.switch-status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.switch-status-badge.bg-success {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border: 1px solid #badbcc;
}

.switch-status-badge.bg-danger {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border: 1px solid #f5c2c7;
}

/* Animated switch container */
.switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.switch-container:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Loading state for switches */
.switch-loading {
    opacity: 0.6;
    pointer-events: none;
}

.switch-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom switch variants */
.form-switch-primary .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-switch-success .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.form-switch-warning .form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-switch-danger .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.form-switch-info .form-check-input:checked {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* Responsive design for switches */
@media (max-width: 576px) {
    .form-check-custom.form-switch .form-check-input {
        width: 2.5rem;
        height: 1.25rem;
    }
    
    .switch-status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
} 