.chat-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.ticket-list {
    width: 25%;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
}
.ticket-controls {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}
.ticket-item {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}
.ticket-item:hover, .ticket-item.active {
}
.chat-box {
    width: 75%;
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.message {
    max-width: 50%;
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}
.message.user {
    align-self: flex-start;
    border-top-left-radius: 4px;
}
.message.support {
    background-color: #0d6efd;
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 4px;
}
.chat-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
}
#reply-text {
    font-size: 14px;
}
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
    }
    .ticket-list {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    .chat-box {
        width: 100%;
    }
}