* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  min-height: 100vh;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layout dos Fãs / Página Principal */
.public-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  height: 90vh;
}

@media (max-width: 768px) {
  .public-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* Chat Central */
.chat-container {
  background-color: #1e293b;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.chat-header {
  padding: 16px 24px;
  background-color: #334155;
  border-bottom: 1px solid #475569;
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-container {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0f172a;
  overflow: hidden;
  border: 2px solid #2563eb;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-header-info h1 {
  font-size: 1.2rem;
  font-weight: 600;
}

.chat-header-info p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-icon-btn {
  margin-left: auto;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.admin-icon-btn:hover {
  opacity: 1;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}

.message.user {
  align-self: flex-end;
  background-color: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.message.bot {
  align-self: flex-start;
  background-color: #334155;
  color: #f8fafc;
  border-bottom-left-radius: 2px;
}

.chat-input-area {
  padding: 16px;
  background-color: #0f172a;
  border-top: 1px solid #334155;
}

#chat-form {
  display: flex;
  gap: 10px;
}

#user-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1e293b;
  color: #ffffff;
  outline: none;
  font-size: 1rem;
}

#user-input:focus {
  border-color: #2563eb;
}

#send-btn {
  padding: 12px 20px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#send-btn:hover:not(:disabled) {
  background-color: #1d4ed8;
}

#send-btn:disabled {
  background-color: #475569;
  cursor: not-allowed;
}

/* Painel lateral do Feed de Fãs */
.panel {
  background-color: #1e293b;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
}

.panel h2 {
  font-size: 1.15rem;
  color: #f1f5f9;
}

.panel-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.news-card {
  background-color: #334155;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #2563eb;
  font-size: 0.9rem;
  line-height: 1.4;
}

.news-card span {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 6px;
}

.no-news {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-top: 20px;
}
