.markdown-content img {
    max-width: 47.5%;
    max-height: 30vh;
    height: auto;
}

.markdown-content .equipment-category {
    margin: 0.5rem 0;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.markdown-content .equipment-category > summary {
    cursor: pointer;
    font-weight: 600;
}

.markdown-content .equipment-category > summary:focus-visible {
    outline: 2px solid var(--color-company);
    outline-offset: 4px;
}

.markdown-content .equipment-category[open] > summary {
    margin-bottom: 0.75rem;
}

.markdown-content .equipment-category > ul {
    margin-bottom: 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 1rem;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--color-border);
    padding: 0.5em 0.75em;
    text-align: left;
    vertical-align: top;
    color: var(--color-text-primary-light)
}

.markdown-content th {
    background-color: var(--color-table-th-light);
    font-weight: bold;
}

.markdown-content tr:nth-child(odd) {
    background-color: var(--color-table-tr-odd-light);
}

.markdown-content tr:nth-child(even) {
    background-color: var(--color-table-th-light);
}

.user-bubble {
    background-color: #d9e8b8 !important;
    font-size:16px;
}

.active-chat-image {
    width: 220px;
    object-fit: contain;
    border-radius: 8px;
}

.markdown-content a,
.message-source a {
    color: var(--color-company);
}

    .markdown-content a:hover,
    .markdown-content a:focus {
        text-decoration: underline;
        color: var(--color-company-hover);
    }

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #888;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.scrollable-cell {
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-img-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.border-top {
    border-top: 1px solid var(--color-border);
}

.image-dialog {
    max-width: 40vw;
    max-height: 40vh;
    width: 40vw;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.1);
    padding: 0;
    box-sizing: border-box;
}

.image-dialog-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.image-dialog-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-dialog-close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
}

.chat-voice-selection {
    width: 120px;
    margin-top: 0.5rem;
}

.bot-bubble {
    padding: 12px 16px;
}

.markdown-content ul,
.markdown-content ol {
    padding-left: 1.5em;
    margin: 0.5em 0;
}

.markdown-content li {
    margin: 0.25em 0;
}

.markdown-content p {
    margin: 0.5em 0;
}

.markdown-content p:first-child {
    margin-top: 0;
}

.markdown-content p:last-child {
    margin-bottom: 0;
}


