.arohi-chat-app {
    display: flex;
    height: 600px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}

.arohi-chat-sidebar {
    width: 250px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px;
}

.arohi-chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.arohi-chat-list li {
    padding: 12px;
    background: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.arohi-chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.arohi-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arohi-chat-header h4 { margin: 0; font-size: 1.1rem; }

.arohi-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.status-dot.offline { background: #cbd5e1; }

.arohi-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.arohi-message.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.arohi-message.theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    word-break: break-word;
}

.arohi-message.mine .msg-bubble {
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 2px;
}

.arohi-message.theirs .msg-bubble {
    background: #e2e8f0;
    color: #1e293b;
    border-bottom-left-radius: 2px;
}

.msg-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.arohi-message.sending { opacity: 0.7; }
.arohi-message.error .msg-bubble { background: #ef4444; }

.arohi-chat-typing {
    padding: 8px 20px;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    background: #fafafa;
}

.arohi-chat-input-area {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    gap: 12px;
}

.arohi-chat-input-area textarea {
    flex: 1;
    resize: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    height: 50px;
    font-family: inherit;
}

.arohi-chat-input-area textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

#arohi-send-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#arohi-send-btn:hover { background: #2563eb; }
