:root {
    --user-message-bg: #0056b3;
    --bot-message-bg: #2c2c2c;
    --text-color: #e0e0e0;
    --input-bg: #333333;
    --input-text: #ffffff;
}

body {
    background-color: #1a1a1a;
    color: var(--text-color);
}

.chat-container {
    height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #242424;
    border: 1px solid #3a3a3a;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.user-message {
    background-color: var(--user-message-bg);
    color: white;
    align-self: flex-end;
}

.bot-message {
    background-color: var(--bot-message-bg);
    color: var(--text-color);
    align-self: flex-start;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #b0b0b0;
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.3s linear infinite;
}

.dot:nth-child(2) {
    animation-delay: -1.1s;
}

.dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes bounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

.sources-toggle .bi {
    transition: transform 0.2s ease-in-out;
}

.sources-toggle[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.sources-toggle[aria-expanded="true"] .toggle-text {
    content: "Hide Sources";
}

/* Form input styling */
.form-control {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: #4a4a4a;
}

.form-control:focus {
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: #6a6a6a;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Button styling */
.btn-primary {
    background-color: var(--user-message-bg);
    border-color: var(--user-message-bg);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0062cc;
    border-color: #005cbf;
}

/* Sources toggle button */
.btn-outline-secondary {
    color: #b0b0b0;
    border-color: #b0b0b0;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff;
    background-color: #4a4a4a;
    border-color: #b0b0b0;
}

.citation-source-icon {
    margin-right: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.citation-list-item {
    display: flex;
    align-items: flex-start;
}

.citation-content {
    flex-grow: 1;
    word-break: break-word;
}