/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    background-color: #f9f9f9;
}

/* Container */
.chat-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 17%;
    background-color: #E94E64;;
    color: white;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-top: 0;
}

.new-chat-btn {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

.new-chat-btn:hover {
    background-color: #2980b9;
}

.chat-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.chat-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.chat-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.chat-title {
    font-weight: bold;
}

.chat-last-message {
    font-size: 0.9em;
    color: #bdc3c7;
}

/* Chat Window */
.chat-window {
    width: 25%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #ecf0f1;
}

.chat-header h3 {
    margin: 0;
}

.chat-metadata {
    font-size: 0.8em;
    color: #7f8c8d;
}

.chat-history {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 60%;
}

.message.left {
    background-color: #ecf0f1;
    align-self: flex-start;
}

.message.right {
    background-color: #3498db;
    color: white;
    align-self: flex-end;
}

.chat-input {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #ddd;
    background-color: #f5f5f5;
}

.chat-input textarea {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    height: 50px;
}

.send-btn {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.send-btn:hover {
    background-color: #2980b9;
}

.right-column {
  width: 58%;
  padding: 10px;
  background: #fff;
  border-left: 1px solid #ccc;
}

.chat-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #000;
    font-weight: bold;
}

.chat-item:hover {
    background-color: #e0f7fa;
}

.chat-item.active {
    background-color: #0288d1;
    color: white;
    font-weight: bold;
}

.right-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.right-column ul li {
    margin-bottom: 8px;
}

.right-column ul li a {
    text-decoration: none;
    color: #0073aa;
}

.right-column ul li a:hover {
    text-decoration: underline;
}