/* General Styles */
body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
}

/* Chat Window Styles */
.chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    background-color: #EDF0F9;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

/* Chat Header Styles */
.chat-header {
    background-color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.info {
    display: flex;
    flex-direction: column;
}

.name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.country {
    font-weight: normal;
    color: #666;
}

.bid {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.bid-number {
    color: #4285f4;
    font-weight: bold;
}

.copy-icon {
    cursor: pointer;
    color: #4285f4;
    margin-left: 4px;
}

.actions {
    display: flex;
    align-items: center;
}

.open-button {
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.open-button:hover {
    background-color: #3367d6;
}

.arrow-icon {
    margin-right: 4px;
}

.menu-icon {
    cursor: pointer;
    color: #666;
    font-size: 20px;
    margin-left: 12px;
}

/* Input Field Styles */
.input-field {
    display: flex;
    flex-direction: column;
    padding: 0 10px 10px 10px;
}

.input-field p {
    margin-bottom: 10px;
}

#message-input {
    flex: 1;
    border: 1px solid #ccc;
    /* Add border to textarea */
    border-radius: 4px;
}

/* Chat footer */
.chat-footer {
    display: flex;
    flex-direction: row-reverse;
    /* justify-content: space-between; */
    width: 100%;
}

/* Section Divider Styles */
.section-divider {
    width: 4px;
    cursor: ew-resize;
    background-color: #ffffff;
    border-left: 1px solid #ddd;
}

.section-divider.active {
    background-color: #93c5fd;
}

/* Sidebar Styles */
.sidebar {
    width: 560px;
    background: #ffffff;
    display: flex;
    padding: 16px 16px 16px 10px;
    flex-direction: column;
}

/* Accordion Styles */
.collapsible-header {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.canned-response-list li:not(:first-child) .collapsible-header {
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.collapsible-body {
    padding: 10px 0;
}

.canned-response:not(:last-child) {
    border-bottom: 1px solid #ddd;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.canned-response header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.canned-response-title {
    font-weight: bold;
    font-size: 14px;
}

.insert-button {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.insert-button i {
    margin-right: 5px;
    font-size: 20px;
}

/* Message Container Styles */
.message-container {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.message-container.user {
    align-items: flex-end;
    /* Align contents to the right for user */
}

.message-container.customer {
    align-items: flex-start;
    /* Align contents to the left for customer */
}

/* Message Styles */
.message {
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
}

.message-header {
    font-weight: bold;
    margin-bottom: 4px;
}

.message.user {
    background-color: #2196F3;
    /* Primary color */
    color: white;
    border-top-right-radius: 0;
    /* Top right border radius 0 */
}

.message.customer {
    background-color: #e0e0e0;
    /* Light gray color */
    color: black;
    border-top-left-radius: 0;
    /* Top left border radius 0 */
}

/* Tabs */

.tabs {
    margin-bottom: 10px;
}

/* Contextual Menu Styles */
.contextual-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.contextual-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contextual-menu li {
    padding: 10px 20px;
    cursor: pointer;
}

.contextual-menu li:hover {
    background-color: #f0f0f0;
}

/* Modal Styles */
.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-container .content {
    margin-bottom: 20px;
}

.modal-container footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    position: relative;
    margin-bottom: 20px;
}

.modal-container .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.modal-container h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

#agent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#agent-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#agent-list li:hover {
    background-color: #f0f0f0;
}

.hidden {
    display: none;
}