/* Chat item component */
.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
    cursor: pointer;
    transition: background-color 0.15s;
}

.chat-item:hover {
    background-color: #F3F4F6;
}

.chat-item.active {
    background-color: #EEF2FF;
    border-left: 3px solid #4F46E5;
}

.chat-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #4B5563;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.chat-preview {
    font-size: 0.875rem;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-meta {
    text-align: right;
    min-width: 4rem;
}

.chat-time {
    font-size: 0.75rem;
    color: #6B7280;
}

.chat-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background-color: #4F46E5;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Message component */
.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 70%;
}

.message-incoming {
    align-self: flex-start;
}

.message-outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    background-color: #F3F4F6;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.message-outgoing .message-content {
    background-color: #4F46E5;
    color: white;
}

.message-text {
    margin-bottom: 0.25rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

/* Header component */
.header {
    background-color: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 7xl;
    margin: 0 auto;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Footer component */
.footer {
    background-color: white;
    border-top: 1px solid #E5E7EB;
    padding: 1rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
}

.footer a {
    color: #4F46E5;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
