﻿.search-container {
    width: 60%;
    margin: auto;
    transition: all 0.3s ease;
}

    .search-container.bottom {
        position: fixed;
        bottom: 20px;
        left: 20%;
        right: 20%;
        width: 60%;
        margin: 0;
    }

.search-wrapper {
    position: relative;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 50px; /* Space for controls */
    border: 1px solid #512bd4;
}

.search-textarea {
    resize: none;
    min-height: calc(2em + 1.5rem + 2px);
    border-radius: 15px;
    padding: 15px;
    font-size: 1rem;
    border: none;
    box-shadow: none;
    background-color: transparent;
    width: 100%;
}

    .search-textarea:focus {
        box-shadow: none;
        outline: none;
    }

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
}

.model-selector .dropdown-toggle {
    border-radius: 20px;
    padding: 5px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    font-weight: 500;
}

.send-button {
    border-radius: 20px;
    padding: 5px 20px;
}

.results-container {
    margin-top: 20px;
    display: none;
}

.chat-history {
    margin-bottom: 100px;
    padding: 20px;
    position: relative;
}

.response-card {
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #eee;
    display: none; /* Hide all responses by default */
}

    .response-card.active {
        display: block; /* Show only active response */
    }

.source-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

    .source-item:last-child {
        border-bottom: none;
    }

.character-count {
    font-size: 0.8rem;
    color: #6c757d;
    position: absolute;
    right: 15px;
    top: 15px;
}

.pagination-controls {
    position: absolute;
    bottom: -50px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    display: none; /* Hide by default */
}

    .pagination-controls.visible {
        display: flex; /* Show when there are responses */
    }

    .pagination-controls button {
        margin: 0 5px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.response-indicator {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

.card-header, .card-body {
    padding: 20px 25px; /* Increased padding */
}

.ai-chat-body h1 {
    font-size: calc(1.275rem + 0.3vw) !important
}

.ai-chat-body h2 {
    font-size: 1.25rem !important
}

.ai-chat-body h3, .ai-chat-body h4 {
    font-size: 1rem !important
}