* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #1890ff;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

.status {
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.customer {
    align-items: flex-start;
}

.message.agent {
    align-items: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.customer .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px 18px 18px 5px;
}

.agent .message-content {
    background: #95ec69;
    border: 1px solid #7ec850;
    border-radius: 18px 18px 5px 18px;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.chat-input {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.chat-input textarea {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.chat-input button {
    padding: 10px 25px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #40a9ff;
}

.chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}