/* Style jeneral */
#inspecteurmeme-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: "Segoe UI", sans-serif;
}

/* Bouton bul anba dwat */
#inspecteurmeme-bubble {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

#inspecteurmeme-bubble img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
#inspecteurmeme-bubble:hover img { transform: scale(1.05); }

/* Panel chat */
#inspecteurmeme-panel {
  display: none;
  position: absolute;
  bottom: 100px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  padding: 10px;
  overflow: hidden;
}

#inspecteurmeme-panel h4 {
  margin: 5px 0 10px;
  text-align: center;
  color: #007bff;
}

#inspecteurmeme-panel input,
#inspecteurmeme-panel select,
#inspecteurmeme-panel textarea {
  width: 100%;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#inspecteurmeme-chatbox {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 200px;
  overflow-y: auto;
  padding: 8px;
  margin-bottom: 8px;
}

.inspecteurmeme-btn {
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.inspecteurmeme-btn.primary {
  background: #007bff;
  color: #fff;
}
.inspecteurmeme-btn.secondary {
  background: #eee;
  color: #333;
}
.inspecteurmeme-btn:hover {
  opacity: 0.9;
}

/* Estati koneksyon */
#inspecteurmeme-status {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 6px;
}

/* Animasyon emosyon */
#inspecteurmeme-img.happy { animation: bounce 0.4s ease-in-out 2; }
#inspecteurmeme-img.angry { animation: shake 0.3s ease-in-out 2; }
#inspecteurmeme-img.sleep { filter: brightness(0.7); opacity: 0.8; }
#inspecteurmeme-img.talking { animation: talkBlink 1s ease-in-out infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
@keyframes talkBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}
