/* Settings Page Specific Styles */

/* Rule Card Styling */
.rule-card {
    border: 1px solid #e0e6eb;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    cursor: move;
}

.rule-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.rule-card.dragging {
    opacity: 0.5;
}

.rule-card.drag-over {
    border-color: #635BFF;
    border-style: dashed;
}

/* Toggle Switch Custom Styling */
.form-check-input:checked {
    background-color: #635BFF;
    border-color: #635BFF;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

/* Rule Badge */
.rule-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rule-badge.active {
    background-color: #d4f4dd;
    color: #28a745;
}

.rule-badge.inactive {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Drag Handle */
.drag-handle {
    cursor: move;
    color: #98A4AE;
    transition: color 0.2s;
}

.drag-handle:hover {
    color: #635BFF;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: #e0e6eb;
    margin-bottom: 16px;
}

.empty-state h6 {
    color: #98A4AE;
    margin-bottom: 8px;
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rule-card {
    animation: fadeInUp 0.4s ease;
}

/* Toast Custom Styling */
.toast {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success .toast-header {
    background-color: #d4f4dd;
    border-bottom: 1px solid #c3e6cb;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    border-bottom: 1px solid #f5c6cb;
}

.toast-error .toast-header i {
    color: #dc3545;
}

/* Button hover effects */
.btn-outline-danger:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Preview Section */
#answer-style-panel .card,
#messages-panel .card,
#advanced-panel .card {
    overflow: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rule-card {
        padding: 16px;
    }

    .btn-group-sm .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}