.ticket-chat-frontend { 
    max-width: 800px; 
    margin: 0 auto; 
}

.chat-window { 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    background: #fff; 
}

.chat-header-user { 
    padding: 20px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.chat-header-user h3 { 
    margin: 0; 
    font-size: 18px; 
}

.status-indicator { 
    color: #4ade80; 
    font-size: 20px; 
}

.chat-messages-user { 
    height: 500px; 
    overflow-y: auto; 
    padding: 20px; 
    background: #f8f9fa; 
}

.chat-input-user { 
    padding: 20px; 
    background: #fff; 
    border-top: 1px solid #ddd; 
}

.input-group { 
    display: flex; 
    gap: 10px; 
    align-items: center!important;
}

.attach-icon { 
    cursor: pointer; 
    font-size: 24px; 
    padding: 8px; 
    min-width: auto!important;
}

#user-message-text { 
    flex: 1; 
    padding: 12px 16px; 
    border: 1px solid #ddd; 
    border-radius: 24px; 
    resize: none; 
    max-height: 120px; 
    height: auto!important;
    font-family: inherit; 
}

.send-button { 
    width: 45px; 
    height: 45px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 20px; 
}

.send-button:hover { 
    opacity: 0.9; 
}

.message-item-user { 
    margin-bottom: 16px; 
    display: flex; 
    gap: 10px; 
}

.message-item-user.from-me { 
    flex-direction: row-reverse; 
}

.msg-avatar { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background: #667eea; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    flex-shrink: 0; 
}

.from-me .msg-avatar { 
    background: #10b981; 
}

.msg-content { 
    max-width: 70%; 
}

.msg-bubble { 
    padding: 12px 16px; 
    border-radius: 18px; 
    background: #fff; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.from-me .msg-bubble { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
}

.msg-text { 
    margin: 0; 
    line-height: 1.5; 
    word-wrap: break-word; 
}

.msg-time { 
    font-size: 11px; 
    color: #999; 
    margin-top: 4px; 
}

.from-me .msg-time { 
    text-align: right; 
    color: #d1d5db; 
}

.msg-attachments { 
    margin-top: 8px; 
}

.msg-attachment { 
    display: inline-block; 
    padding: 6px 12px; 
    background: #f3f4f6; 
    border-radius: 12px; 
    margin: 4px 4px 4px 0; 
    font-size: 12px; 
}

.from-me .msg-attachment { 
    background: rgba(255,255,255,0.2); 
}

.msg-attachment a { 
    text-decoration: none; 
    color: inherit; 
}

#user-file-preview { 
    margin-top: 10px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.user-file-item { 
    padding: 6px 12px; 
    background: #f3f4f6; 
    border-radius: 12px; 
    font-size: 12px; 
}