/* Alfie Widget Styles */
#alfie-chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  border: none;
  padding: 0.8em;
  border-radius: 50%;
  font-size: 1.5rem;
  z-index: 1000;
  cursor: pointer;
}

#alfie-chat-widget {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background: #1a1a1a;
  color: #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  z-index: 1000;
}

#alfie-chat-widget.visible {
  display: flex;
}

#alfie-chat-header {
  background: #333;
  padding: 1em;
  font-weight: bold;
  text-align: center;
}

#alfie-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1em;
  font-size: 0.8rem;
}

#alfie-chat-form {
  display: flex;
  border-top: 1px solid #444;
}

#alfie-chat-input {
  flex: 1;
  padding: 0.8em;
  border: none;
  background: #222;
  color: #eee;
}

#alfie-chat-form button {
  background: #30d5c8;
  border: none;
  padding: 0.8em 1em;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}
#alfie-chat-messages {
  font-size: 0.85rem;
  line-height: 1.5;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

#alfie-chat-messages div {
  margin-bottom: 8px;
}

#alfie-chat-messages div strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Style user messages */
#alfie-chat-messages div:has(strong:contains("You")) {
  color: #ccc;
  font-family: 'IBM Plex Mono', monospace;
}

/* Style Alfie’s replies */
#alfie-chat-messages div:has(strong:contains("Alfie")) {
  color: #9fe0e8;
  font-style: italic;
  font-family: 'Cutive Mono', monospace;
}
