.chat-message-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8fafc;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.header-content {
    .header-title {
        font-size: 18px;
        font-weight: 700;
        color: #4b87ff;
        margin-bottom: 4px;
    }

    .header-subtitle {
        font-size: 12px;
        color: #9ca3af;

        .separator {
            color: #d1d5db;
        }
    }
}

.tabs-container {
    padding: 0 24px;
    background: #fff;
}

.tabs-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -1px;

    &:hover {
        color: #111827;
    }

    &.active {
        color: #4b87ff;
        border-bottom-color: #4b87ff;
    }
}

.chat-main {
    flex: 1;
    overflow: hidden;
    padding: 24px;
}

.messages-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    height: 420px;
    overflow-y: auto;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item {
    display: flex;
    gap: 12px;
}

.message-left {
    justify-content: flex-start;
}

.message-right {
    justify-content: flex-end;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.avatar-ai {
    background: #a855f7;
}

.avatar-guest {
    background: #d1d5db;
}

.message-content {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.message-meta-right {
    text-align: right;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.message-bubble-left {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-top-left-radius: 4px;
}

.message-bubble-right {
    background: #4b87ff;
    color: #fff;
    border-top-right-radius: 4px;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.empty-text {
    font-size: 14px;
    color: #9ca3af;
}

.summary-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-section {
    .summary-title {
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 8px;
    }

    .summary-text {
        font-size: 14px;
        color: #374151;
        line-height: 1.6;
    }
}
