/* Chat Log Styling - matches chat block styling */

.coai_chat_chat-log-content-display {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.coai_chat_chat-log-content-display h2 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.chat-log-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.go-back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.go-back-button:hover {
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    border-color: #ccc;
}

.go-back-button:active {
    background: #d0d0d0;
    transform: translateY(1px);
}

.coai_chat_chat-conversation {
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.coai_chat_chat-message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    clear: both;
    overflow-y: auto;
    overflow-x: auto;
    max-width: 85%;
}

.coai_chat_user-message {
    background: #f0f8ff;
    border-left-color: #0073aa;
    float: right;
    animation: fadeIn 1s ease-in-out;
}

.coai_chat_assistant-message {
    background: #f9f9f9;
    border-left-color: #46b450;
    float: left;
    animation: fadeIn 1s ease-in-out;
}

.coai_chat_message-header {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.coai_chat_message-number {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}

.coai_chat_message-timestamp {
    color: #999;
    font-size: 0.8em;
    font-style: italic;
    white-space: nowrap;
}

.coai_chat_message-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

.coai_chat_content-supplied {
    margin: 10px 0 0 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    list-style: none;
}

.coai_chat_content-supplied-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coai_chat_content-supplied li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.coai_chat_content-supplied li:last-child {
    border-bottom: none;
}

.coai_chat_content-item-title {
    font-weight: 500;
    flex-grow: 1;
}

.coai_chat_content-item-link {
    text-decoration: none;
    color: #46b450;
    font-size: 1.2em;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.coai_chat_content-item-link:hover {
    background-color: rgba(0, 115, 170, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .coai_chat_chat-conversation {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .coai_chat_chat-message {
        max-width: 100%;
        float: none;
    }
}

/* Artifact Styling */
.coai_chat-featured_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: larger;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    gap: 1rem;
}

.coai_chat-featured_content_inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem;
    flex-grow: 1;
    gap: 0.75rem;
}

.coai_chat-featured_content_inner p {
    margin: 0;
    flex-grow: 1;
}

.coai_chat-featured_content_inner img {
    max-height: 5rem;
}

.coai_chat-featured_content a,
.coai_chat-featured_content_btn {
    text-align: center;
    text-decoration: none !important;
    padding: 0.75rem 1.5rem;
    background: #46b450 !important;
    color: white !important;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    min-width: 120px;
}

.coai_chat-featured_content a:hover,
.coai_chat-featured_content_btn:hover {
    background: #358d3c !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

.coai_chat-featured_content a:active,
.coai_chat-featured_content_btn:active {
    background: #358d3c !important;
    color: white !important;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.coai_chat-featured_content a:visited,
.coai_chat-featured_content_btn:visited {
    color: white !important;
    text-decoration: none !important;
}

.coai_chat-inline_citation {
    vertical-align: super;
    font-size: smaller;
    text-decoration: none;
    color: #46b450;
    margin-left: 2px;
}

.coai_chat-inline_citation a {
    color: inherit;
    text-decoration: none;
}

.coai_chat-inline_citation a:hover {
    text-decoration: underline;
}

/* Responsive design for artifacts */
@media screen and (max-width: 782px) {
    .coai_chat-featured_content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .coai_chat-featured_content_inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .coai_chat-featured_content_inner img {
        max-width: 90%;
    }

    .coai_chat-featured_content_inner {
        padding: 0.5rem 0;
    }

    .coai_chat-featured_content_btn {
        max-width: 90%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}