/* Custom CSS for AI Chatbot Application */

/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.75rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-brand {
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: #4a6bdf;
    border-color: #4a6bdf;
}

.btn-primary:hover {
    background-color: #3a5bd0;
    border-color: #3a5bd0;
}

.btn-outline-primary {
    color: #4a6bdf;
    border-color: #4a6bdf;
}

.btn-outline-primary:hover {
    background-color: #4a6bdf;
    color: white;
}

/* Chat Interface */
#chat-messages {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
}

.message {
    margin-bottom: 1rem;
}

.message .badge {
    font-size: 0.75rem;
}

/* Form Elements */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #4a6bdf;
    box-shadow: 0 0 0 0.2rem rgba(74, 107, 223, 0.25);
}

/* List Groups */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.bg-primary {
    background-color: #4a6bdf !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

/* Input Group */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Chat Bubbles */
.bg-light {
    background-color: #e9ecef !important;
}

/* Scrollbar Styling for Chat */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .message div {
        max-width: 90% !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animation for new messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease-in;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #dc3545;
}

.status-processing {
    background-color: #ffc107;
}




