/* ░░░ GENERAL PAGE STYLE ░░░ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Vazir", "Tahoma", "Noto Sans Arabic", sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  direction: rtl;
  background: radial-gradient(circle at top, #4a2f19 0%, #2f1b0c 40%, #1c0f06 100%);
  color: #f8f8f8;
  overflow: hidden;
}

/* ░░░ CHAT LAYOUT ░░░ */
.chat-container {
  display: grid;
  grid-template-columns: 1fr 260px;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* ░░░ MAIN CHAT AREA ░░░ */
.chat-main {
  height: 100%;
  padding: 14px 12px 94px;
  overflow-y: auto;
  position: relative;
}

/* BACKGROUND LOGO (logo(1).png) */
.chat-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("logo(1).png") center center no-repeat;
  background-size: 480px;
  opacity: 0.15;
  filter: grayscale(20%) blur(0.3px);
  pointer-events: none;
}

/* CHAT BUBBLES */
.msg {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.msg.user {
  background: rgba(212, 175, 55, 0.25);
  border: 1px solid #d4af37;
  margin-left: auto;
  text-align: right;
}

.msg.bot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #a57c2b;
  text-align: right;
}

/* TIME */
.msg-time {
  font-size: 10px;
  color: #c7b18a;
  margin-top: 3px;
}

/* ░░░ INPUT AREA ░░░ */
.chat-input-area {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 14px 18px;
  background: #2f1b0cd9;
  border-top: 1px solid #a57c2b;
  backdrop-filter: blur(5px);
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d4af37;
  background: #3d2614;
  color: #f8f8f8;
  font-size: 14px;
}

.chat-input::placeholder {
  color: #c7b18a;
}

.btn-send {
  background: #000;
  border: 2px solid #d4af37;
  color: #d4af37;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}

.btn-send:hover {
  background: #d4af37;
  color: #2f1b0c;
}

/* ░░░ RIGHT LOGO BAR ░░░ */
.right-bar {
  background: transparent;
  border-left: 1px solid #d4af3722;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* MAIN LOGO (logo_big.png) */
.right-bar::before {
  content: "";
  background: url("logo_big.png") center center no-repeat;
  background-size: 150%;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px #000);
}

.upload-btn,
.mic-btn {
  background: #3d2614;
  border: 1px solid #d4af37;
  color: #d4af37;
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-btn:hover,
.mic-btn:hover {
  background: #d4af37;
  color: #2f1b0c;
}

/* ░░░ MOBILE RESPONSIVE ░░░ */
@media (max-width: 768px) {
  .chat-container {
    grid-template-columns: 1fr;
  }
  .right-bar {
    display: none;
  }
  .chat-main {
    padding: 12px 14px 90px;
  }
  .msg {
    max-width: 90%;
    font-size: 14px;
  }
}
