/* Chat Container */
#chat-container {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  width: 300px;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

#chat-header {
  background: #4a90e2;
  color: white;
  padding: 8px 12px;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

#chat-content {
  display: none;
  max-height: 200px;
  border: 1px solid #ddd;
  border-top: none;
}

#chat-messages {
  height: 150px;
  overflow-y: auto;
  padding: 8px;
  background: white;
}

.message {
  margin: 4px 0;
  padding: 4px 6px;
  background: #f8f9fa;
  border-radius: 4px;
  word-wrap: break-word;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.message-author {
  font-weight: bold;
  color: #333;
  font-size: 11px;
}

.message-time {
  font-size: 10px;
  color: #666;
}

.message-text {
  font-size: 11px;
  line-height: 1.3;
}

.translate-btn-guestbook {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.translate-btn-guestbook:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.translate-btn-guestbook.active {
  background: linear-gradient(135deg, #28a745, #20c997);
}

#chat-input-container {
  padding: 8px;
  background: #f5f5f5;
  border-radius: 0 0 8px 8px;
}

.input-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

#username-input {
  width: 80px;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 11px;
}

#chat-input {
  flex: 1;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 11px;
}

#chat-send {
  padding: 4px 8px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

#chat-send:hover {
  background: #357abd;
}

.chat-collapsed {
  opacity: 0.8;
}

/* Creator Info */
#creator-info {
  position: absolute;
  bottom: 10px;
  right: 130px;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-family: Arial, sans-serif;
  color: #666;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

#creator-info a {
  color: #4a90e2;
  text-decoration: none;
  margin: 0 2px;
}

#creator-info a:hover {
  text-decoration: underline;
}

.creator-line {
  margin: 1px 0;
}