* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'vazir-medium';
  src: url('fonts/Vazir-Medium.ttf');
}

body {
  font-family: 'vazir-medium', sans-serif;
  background-color: #f4f4f4;
  direction: rtl;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #007bff;
  color: #fff;
  padding: 15px;
  text-align: center;
  font-size: 18px;
}

.chat-box {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  background-color: #e9ecef;
  border-radius: 10px;
  align-self: flex-start;
  max-width: 80%;
}

.message.user {
  align-self: flex-end;
  background-color: #dcf8c6;
}

.chat-form {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: #f9f9f9;
}

.chat-form input[type="text"],
.chat-form input[type="file"] {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.chat-form button {
  font-family: inherit;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.chat-form button:hover {
  background-color: #0056b3;
}