/* Chat Container Styles */
.chat-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Messages Container */
.messages-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(20, 20, 20, 0.7);
  border-radius: 8px;
}

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

.message.sent {
  background-color: #0066cc;
  color: white;
  margin-left: auto;
}

.message.received {
  background-color: #333;
  color: white;
  margin-right: auto;
}

/* Message Input Area */
.message-input {
  display: flex;
  gap: 10px;
}

#message-input {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  background-color: rgba(50, 50, 50, 0.8);
  color: white;
  font-size: 16px;
}

#send-button {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  background-color: #0066cc;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

#send-button:hover {
  background-color: #0055aa;
}

/* Scrollbar styling */
.messages-container::-webkit-scrollbar {
  width: 8px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(50, 50, 50, 0.5);
}

.messages-container::-webkit-scrollbar-thumb {
  background: #0066cc;
  border-radius: 4px;
}

/* Profile picture styling */
.profile-pic {
  border-radius: 20%;
  object-fit: cover;
  display: block; /* or inline-block depending on context */
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.2s;
}

.profile-pic:hover {
  transform: scale(1.1);
}

/* Navbar login button */
.navbar #login-btn {
  margin-left: auto;
  padding: 5px 10px;
  display: flex;
  align-items: center;
}

/* Profile Page Styles */
.profile-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-pic-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0066cc;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: rgba(50, 50, 50, 0.8);
  color: white;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.save-btn {
  padding: 12px 25px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.save-btn:hover {
  background-color: #0055aa;
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.logout-btn {
  padding: 12px 25px;
  background-color: #cc0000;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #aa0000;
}
