/* Custom styles for the AI Knowledge Assistant */

.min-vh-100 {
    min-height: 100vh;
}

.response-content {
    line-height: 1.6;
}

.answer-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Auto-resize textarea */
#question {
    resize: vertical;
    min-height: 80px;
}

/* Loading animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

/* Card hover effects */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Feature boxes styling */
.border.rounded {
    transition: all 0.2s ease-in-out;
}

.border.rounded:hover {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Alert styling improvements */
.alert {
    border: none;
    border-radius: 8px;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 500;
}

/* Button improvements */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

/* Form improvements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .bg-light {
    background-color: var(--bs-gray-800) !important;
    border: 1px solid var(--bs-gray-700);
}

[data-bs-theme="dark"] .text-muted {
    color: var(--bs-gray-400) !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus improvements for accessibility */
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
