/* chat.css */

/* Container */
.chat-container {
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eaeaea;
  background: #f9fafe;
}

.chat-header .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 12px;
}

.chat-header .user-info h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1f2d3d;
}

.chat-header .user-info span {
  font-size: 12px;
  color: #50b45a;
}

/* Chat Messages */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f7f9fc;
}

.message {
  display: flex;
  margin-bottom: 20px;
}

.message.incoming .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}

.message.outgoing {
  justify-content: flex-start;
}

.message-content {
  max-width: 60%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  background: #f1f3f9;
  color: #1f2d3d;
}

.message.incoming .message-content {
  background: #f1f3f9;
  color: #333;
  border-bottom-left-radius: 0;
}

.message.outgoing .message-content {
  background: #4f8ef7;
  color: white;
  border-bottom-right-radius: 0;
}

.message-content .timestamp {
  display: block;
  font-size: 11px;
  color: #9ea9b3;
  margin-top: 8px;
  text-align: right;
}

/* Chat Input */
.chat-input {
  display: flex;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #eaeaea;
  background: #fff;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background: #f7f9fc;
}

.chat-input input[type="text"]:focus {
  border-color: #4f8ef7;
  background: #fff;
}

.chat-input button {
  margin-left: 12px;
  padding: 10px 20px;
  background: #4f8ef7;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-input button:hover {
  background: #3c7ee5;
}
