/* أسلوب عام وخلفية داكنة */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 400px;
  max-width: 90vw;
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(179, 197, 19, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 600px;
}

.chat-header {
  background-color: #1f1e1e;
  padding: 15px;
  text-align: center;
  position: relative;
}

.chat-image {
  width: 200px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border: 3px solid #94d2bd;
}

.chat-title {
  margin: 10px 0 0 0;
  font-size: 24px;
  color: #94d2bd;
  font-weight: bold;
}

.chat-window {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #0a9396 #121212;
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
  background-color: #0a9396;
  border-radius: 3px;
}

.message {
  margin-bottom: 15px;
  max-width: 80%;
  word-wrap: break-word;
  line-height: 1.4;
}

.user-message {
  background-color: #005f73;
  color: #d9f0f0;
  align-self: flex-start;
  padding: 10px 15px;
  border-radius: 15px 15px 15px 3px;
}

.bot-message {
  background-color: #94d2bd;
  color: #121212;
  align-self: flex-end;
  padding: 10px 15px;
  border-radius: 15px 15px 3px 15px;
}

.chat-form {
  display: flex;
  padding: 10px;
  background-color: #142d30;
}

#user-input {
  flex: 1;
  padding: 12px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 16px;
  background-color: #2a4d4d;
  color: #e0e0e0;
  transition: background-color 0.3s ease;
}

#user-input:focus {
  background-color: #3a6b6b;
}

#send-btn {
  background-color: #0a9396;
  border: none;
  padding: 0 20px;
  margin-left: 10px;
  border-radius: 25px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#send-btn:hover {
  background-color: #056c6c;
}













/* ✅ حاوية الإشعارات */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* ✅ شكل الإشعار */
.notification {
  background-color: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ffa2;
  animation: fadeInOut 4s ease-in-out;
  font-weight: bold;
}

/* ✨ أنيميشن دخول وخروج */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(-20px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}







/* خلفية داكنة أنيقة */
body {
  background-color: #121212;
  font-family: 'Cairo', sans-serif;
  color: white;
  margin: 0;
  padding: 0;
}

/* نافذة المحادثة */
#chat-window {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* فقاعات المستخدم */
.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #2561b6, #0056ff);
  padding: 12px 16px;
  border-radius: 20px 20px 0 20px;
  max-width: 75%;
  word-wrap: break-word;
  animation: pop-in 0.3s ease-in-out;
}

/* فقاعات Ziroxoft */
.bot-message {
  align-self: flex-start;
  background: linear-gradient(135deg, #e97979, #2c2c2c);
  padding: 12px 16px;
  border-radius: 20px 20px 20px 0;
  max-width: 75%;
  word-wrap: break-word;
  animation: pop-in 0.3s ease-in-out;
}

/* حركة دخول الفقاعات */
@keyframes pop-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* نموذج الإدخال */
#chat-form {
  display: flex;
  padding: 10px;
  background-color: #1a1a1a;
  border-top: 1px solid #c53030;
}

#user-input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 25px;
  background-color: #3f3939;
  color: white;
}

#user-input:focus {
  outline: none;
  box-shadow: 0 0 5px #4fa3ff;
}

button[type="submit"] {
  background: #4fa3ff;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #1e90ff;
}