/* public/css/call/call-chat.css */
.in-call-chat {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow: hidden;
}

.in-call-chat .chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.in-call-chat .chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.in-call-chat .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.in-call-chat .close-btn:hover {
    opacity: 1;
}

/* Область сообщений */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.own {
    align-self: flex-end;
}

.message-sender {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 4px;
    margin-left: 8px;
}

.chat-message.own .message-sender {
    text-align: right;
    margin-right: 8px;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 8px 14px;
    word-break: break-word;
}

.chat-message.own .message-bubble {
    background: var(--primary);
    color: white;
}

.chat-text {
    font-size: 13px;
    line-height: 1.4;
}

.chat-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    cursor: pointer;
}

.chat-file {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-size: 12px;
}

.chat-file i {
    font-size: 20px;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    margin-left: 8px;
}

/* Панель ввода */
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-group input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    color: white;
    font-size: 14px;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.input-group button {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.input-group button:hover {
    background: rgba(255,255,255,0.2);
}

.files-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.file-chip {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Светлая тема */
body.light-theme .in-call-chat {
    background: rgba(255, 255, 255, 0.95);
    color: #1e2a3a;
}
body.light-theme .in-call-chat .chat-header {
    border-bottom-color: rgba(0,0,0,0.1);
}
body.light-theme .in-call-chat .close-btn {
    color: #1e2a3a;
}
body.light-theme .message-bubble {
    background: rgba(0, 0, 0, 0.05);
}
body.light-theme .input-group input {
    background: rgba(0, 0, 0, 0.05);
    color: #1e2a3a;
}