/* Custom Alert Styles */

/* Success Alert */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border: 1px solid #28a745 !important;
    color: #155724 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2) !important;
}

/* Danger/Error Alert (for delete messages) */
.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
    border: 1px solid #dc3545 !important;
    color: #721c24 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

/* Warning Alert (for validation errors) */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2) !important;
}

/* Info Alert */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    border: 1px solid #17a2b8 !important;
    color: #0c5460 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2) !important;
}

/* Validation Error Feedback */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    color: #dc3545 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

/* Form Control Focus States */
.form-control:focus.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control:focus.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Valid Feedback */
.valid-feedback {
    color: #28a745 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

/* Sweet Alert Style Override (if using) */
.swal2-popup {
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    border-radius: 8px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
}

/* Responsive Sweet Alert Buttons */
@media (max-width: 767px) {
    .swal2-confirm, .swal2-cancel {
        padding: 8px 15px !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        margin: 5px 0 !important;
    }
    .swal2-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
}

