/* chat/style.css */

#chat-widget {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 20px auto;
  font-family: sans-serif;
}

#chat-widget header {
  background: #007acc;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 1.1rem;
}

#messages {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 12px;
  overflow-y: auto;
}

#messages li {
  margin-bottom: 8px;
  animation: fadeIn 0.3s ease;
}

.meta {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 2px;
}

.text {
  background: #f1f1f1;
  padding: 6px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
}

#commentForm {
  display: flex;
  border-top: 1px solid #ddd;
}

#commentForm input {
  border: none;
  padding: 10px;
  font-size: 0.9rem;
  flex: 1;
}

#commentForm input:focus {
  outline: none;
}

#commentForm button {
  background: #007acc;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 0 16px;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: μικρότερα ύψη σε mobile */
@media (max-width: 600px) {
  #chat-widget {
    margin: 10px auto;
  }
}
