/* ============================================
💬 XMPP ЧАТ С ОПЕРАТОРОМ - СТИЛИ (v2.0)
============================================ */
.chat-button {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
background: #0084ff;
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
z-index: 1000;
transition: all 0.3s;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: bold;
padding: 0;
}
.chat-button:hover {
background: #0066cc;
transform: scale(1.05);
}
.chat-button.inactive {
background: #999;
cursor: not-allowed;
opacity: 0.6;
}
.chat-button .button-label {
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
font-weight: bold;
}
.chat-button .badge,
.chat-button .unread-badge {
position: absolute;
top: -5px;
right: -5px;
background: #ff4444;
color: white;
border-radius: 50%;
min-width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
display: none;
}
.chat-button .badge.show,
.chat-button .unread-badge.show {
display: flex;
}
.status-indicator {
position: absolute;
bottom: 5px;
right: 5px;
width: 12px;
height: 12px;
background: #ccc;
border-radius: 50%;
border: 2px solid white;
}
.status-indicator.online { background: #31a24c; }
.status-indicator.offline { background: #ff4444; }
.status-indicator.connecting { background: #ffa500; }
.chat-window {
position: fixed;
bottom: 100px;
right: 20px;
width: 380px;
height: 500px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0,0,0,0.15);
display: none;
flex-direction: column;
z-index: 1001;
overflow: hidden;
}
.chat-window.open {
display: flex;
}
.chat-header {
background: #0084ff;
color: white;
padding: 10px 15px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: move;
user-select: none;
min-height: 45px;
}
.chat-header h3 {
font-size: 15px;
font-weight: 600;
margin: 0;
}
.chat-close {
background: rgba(255,255,255,0.2);
border: none;
color: white;
width: 26px;
height: 26px;
border-radius: 50%;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.chat-close:hover {
background: rgba(255,255,255,0.3);
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 15px;
background: #f9f9f9;
display: flex;
flex-direction: column;
}
#welcome-message {
text-align: center;
color: #999;
padding: 20px;
font-size: 14px;
}
.message {
margin-bottom: 12px;
max-width: 80%;
padding: 10px 14px;
border-radius: 12px;
font-size: 14px;
line-height: 1.4;
word-wrap: break-word;
user-select: text;
}
.message.admin {
background: #e4e6eb;
color: #050505;
align-self: flex-start;
margin-right: auto;
border-bottom-left-radius: 4px;
}
.message.user {
background: #0084ff;
color: white;
align-self: flex-end;
margin-left: auto;
border-bottom-right-radius: 4px;
}
.load-more-btn {
text-align: center;
padding: 10px;
color: #667eea;
cursor: pointer;
font-size: 13px;
background: #f0f0f0;
border-radius: 8px;
margin: 10px 0;
align-self: center;
}
.load-more-btn:hover {
background: #e0e0e0;
}
.chat-input-area {
border-top: 1px solid #e4e6eb;
padding: 12px;
background: white;
display: flex;
gap: 8px;
align-items: flex-end;
}
.chat-input {
flex: 1;
border: 1px solid #ddd;
border-radius: 8px;
padding: 12px 15px;
font-size: 16px;
outline: none;
resize: none;
min-height: 44px;
max-height: 120px;
font-family: inherit;
line-height: 1.4;
}
.chat-input:focus {
border-color: #0084ff;
}
.chat-buttons {
display: flex;
flex-direction: column;
gap: 4px;
align-items: center;
}
.chat-btn {
background: transparent;
border: none;
width: 40px;
height: 40px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 22px;
transition: all 0.2s;
color: #666;
}
.chat-btn:hover {
background: #f0f0f0;
color: #0084ff;
}
.chat-btn.send {
background: #0084ff;
color: white;
width: 44px;
height: 44px;
font-size: 20px;
border-radius: 10px;
}
.chat-btn.send:hover {
background: #0066cc;
}
.chat-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.chat-btn:disabled:hover {
background: transparent;
color: #