﻿body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;  /* 100% of the viewport height */
}

.panel {
  width: 30%;
  border-right: 1px solid #ccc;
  padding: 10px;
  overflow-y: scroll;
}

.details {
  background-color: #f1f1f1;
  overflow-y: scroll;
  width: 100%;
}

.conversation {
  padding: 10px;
  width: 95%;
}

.message {
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  width: 75%;
  text-align: left;
}

.user-message {
  background-color: white;
  color: black;
  float: left;
  clear: both;
}

.company-message {
  background-color: RGBA(217, 253, 211, 0.85); /* Lighter green color */
  color: #333;
  font-size: 18px; /* Bigger font size */
  float: right;
  clear: both;
}

.time {
  display: block;
  font-size: 0.8em;
  color: #aaa;
  text-align: right;
}


.user {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}

.user .user-name {
    font-weight: bold;
    color: #000;
    text-align: left;
}

.user .num-messages {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 20px;
    padding: 0 6px;
    height: 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    line-height: 20px;
    border-radius: 10px;
    text-align: center;
    background: #007bff;
}

.user .recent-interaction {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

.user:hover {
  background-color: #f0f0f0;
}

.response {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 5px;
}

.sidebar {
    width: 30%; /* Adjust as needed */
    height: 100%;
    overflow-y: auto; /* Add vertical scrollbar if necessary */
    border-right: 1px solid #ccc;
}

.search-bar {
  padding: 10px;
}

.search-bar .lang-select {
  font-size: 12px;
  padding: 2px 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: middle;
}

.search-bar input {
  width: 100%;
  padding: 5px;
  font-size: 16px;
  border: none;
  border-radius: 3px;
}

.conversations {
  overflow-y: scroll;
  height: calc(100% - 60px);
}

.chat {
    width: 70%; /* Adjust as needed */
    height: 100%;
    overflow-y: auto; /* Add vertical scrollbar if necessary */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chat-header {
  padding: 10px;
  background-color: #ededed;
  border-bottom: 1px solid #ddd;
}

.details, .chat-content {
    flex-grow: 1;
    overflow-y: auto;
}

.chat-input {
  padding: 10px;
  background-color: #ededed;
  border-top: 1px solid #ddd;
  display: flex;
}

.chat-input input {
  flex-grow: 1;
  padding: 5px;
  font-size: 16px;
  border: none;
  border-radius: 3px;
}

.chat-input button {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.customer-details {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.customer-service, 
.customer-language, 
.customer-timestamp {
  margin-bottom: 5px;
  font-size: 14px;
  color: #888;
}
