.container {
    display: flex;
    width: 100%;
    height: 85vh;
    margin: 0 auto;
    max-width: 1300px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #111;
    border: 2px solid red;
}

.sidebar {
    width: 30%;
    background-color: #1a1a1a;
    border-right: 2px solid red;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    background-color: red;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.ticket-list {
    overflow-y: auto;
    flex: 1;
}

.ticket {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: 0.2s;
    color: #ddd;
}

.ticket:hover {
    background-color: #2a2a2a;
}

.addTicket {
    margin: 10px;
    padding: 10px;
    background-color: red;
    color: white;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
}

.chat-area {
    width: 70%;
    display: flex;
    flex-direction: column;
    background-color: #0d0d0d;
}

.chat-header {
    padding: 15px;
    background-color: red;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

#chatWindow {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.msg {
    margin: 10px 0;
    padding: 10px 15px;
    width: fit-content;
    max-width: 70%;
    border-radius: 10px;
    word-wrap: break-word;
    color: white;
}

.user {
    background-color: red;
    margin-left: auto;
}

.bot {
    background-color: rgb(150, 0, 0);
    margin-right: auto;
}


.inputBar {
    padding: 10px;
    display: flex;
    gap: 10px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

#chatInput {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    border: none;
    background-color: #333;
    color: white;
}

#sendBtn {
    background-color: red;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

/* --- Mobile Responsive --- */
@media (max-width: 700px) {

    .container {
        flex-direction: column;
        height: auto !important;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .sidebar {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 2px solid red;
    }

    .chat-area {
        width: 100%;
        height: calc(100vh - 200px);
        display: flex;
        flex-direction: column;
    }

    #chatWindow {
        flex: 1;
        overflow-y: auto;
        padding: 15px;
    }

    .msg {
        max-width: 90%;
        font-size: 15px;
    }

    .inputBar {
        padding: 8px;
        gap: 6px;
    }

    #chatInput {
        font-size: 16px;
        padding: 10px;
    }

    #sendBtn {
        padding: 10px 16px;
    }
}
