body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
  min-height: 100vh;
}

.header-container {
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.company-header {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 15px;
}

.company-logo {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
}

.company-name {
  color: white;
  font-size: 20px;
  font-weight: bold;
}

.chat-container {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background: linear-gradient(90deg, #3b82f6 0%, #1e88e5 100%);
  color: white;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chat-messages {
  padding: 15px;
  height: 520px;
  overflow-y: auto;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 18px;
  max-width: 80%;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat-bubble.user {
  background: #dbeafe;
  align-self: flex-end;
  margin-right: 10px;
  text-align: right;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  background: #ffffff;
  align-self: flex-start;
  margin-left: 10px;
  text-align: right;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.chat-bubble.loading {
  background: #fff3cd;
  align-self: flex-start;
  margin-left: 10px;
  font-style: italic;
  text-align: right;
}

.chat-bubble strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #4b5563;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #e5e7eb;
  padding: 15px;
  gap: 10px;
  background: #f9fafb;
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 24px;
  border: 1px solid #d1d5db;
  font-family: 'Tajawal', sans-serif;
  transition: border-color 0.2s;
  background: white;
}

.chat-input-area input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.chat-input-area button {
  background: #25D366;
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.chat-input-area button:hover {
  background: #128C7E;
  transform: scale(1.05);
}

.suggested-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 15px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.suggested-question {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.suggested-question:hover {
  background: #bae6fd;
  transform: translateY(-2px);
}

/* تصميم محسن للرسائل */
.chat-bubble.bot::before {
  content: "";
  position: absolute;
  left: -40px;
  width: 28px;
  height: 28px;
  background-image: url('assets/img/logo.png'); /* ضع مسار الشعار هنا */
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 2px solid #3b82f6;
}


.chat-bubble.user::before {
  content: "👤";
  position: absolute;
  right: -30px;
  background: #6b7280;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* تصميم متجاوب */
@media (max-width: 640px) {
  .chat-container {
    margin: 10px;
    border-radius: 12px;
  }
  
  .company-header {
    padding: 0 10px;
  }
  
  .chat-messages {
    height: 350px;
  }
  
  .chat-bubble {
    max-width: 90%;
  }
}

 .chat-bubble::before {
    display: none;
  }

/* شريط التمرين مخصص */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
/* تحديث بسيط لتحسين المظهر */
.chat-bubble.bot {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  align-self: flex-start;
  margin-left: 10px;
  text-align: right;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
  line-height: 1.6;
}

.chat-bubble.loading {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  align-self: flex-start;
  margin-left: 10px;
  font-style: italic;
  text-align: right;
}

.suggested-question {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.suggested-question:hover {
  background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header-container,
.company-header,
.company-logo,
.company-name {
    display: none !important;
}

#chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px; /* ← نقلها لليمين */
    width: 70px;     /* تكبير الأيقونة */
    height: 70px;
    background-color: #1e73be; /* لون واضح */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* ظل لامع */
    transition: transform 0.2s ease, box-shadow 0.2s;
}

#chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#chat-toggle img {
    width: 38px;   /* تكبير أيقونة المحادثة */
    height: 38px;
}