﻿/* ===== CONTAINER ===== */
.admin-chat-container {
    display: flex;
    height: 500px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== USER LIST ===== */
.user-list {
    width: 30%;
    border-right: 1px solid #eee;
    background: #fafafa;
}

    .user-list h3 {
        padding: 15px;
        margin: 0;
        font-size: 16px;
        border-bottom: 1px solid #eee;
    }

    .user-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .user-list li {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f0f0f0;
        transition: 0.2s;
    }

        .user-list li:hover {
            background: #f2f2f2;
        }

        .user-list li.active {
            background: #e8f0fe;
            font-weight: 600;
        }

/* ===== CHAT PANEL ===== */
.chat-panel {
    width: 70%;
    display: flex;
    flex-direction: column;
}

/* ===== CHAT BOX ===== */
.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

/* ===== MESSAGE ===== */
.chat-msg {
    max-width: 70%;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

/* USER */
.user-msg {
    background: #e5e5ea;
    align-self: flex-start;
}

/* ADMIN */
.bot-msg {
    background: #0071e3;
    color: white;
    margin-left: auto;
}

/* ===== INPUT ===== */
.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #fff;
}

    .chat-input input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        outline: none;
        font-size: 14px;
    }

        .chat-input input:focus {
            border-color: #0071e3;
        }

    .chat-input button {
        margin-left: 10px;
        padding: 10px 16px;
        background: #0071e3;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: 0.2s;
    }

        .chat-input button:hover {
            background: #005bb5;
        }
