/* Nopturnia AI Chat Widget Styles */

#nopturnia-chat-widget, #nopturnia-chat-widget-minimized {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#nopturnia-chat-widget {
  width: 340px;
  max-width: 340px;
  background: #fff;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 1px solid #e3e7f7;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.nopturnia-chat-header {
  background: #2a4bff;
  color: #fff;
  padding: 14px 18px 12px 18px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nopturnia-chat-title {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.nopturnia-chat-minimize {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

.nopturnia-chat-body {
  padding: 12px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  height: 340px;
  box-sizing: border-box;
}
.nopturnia-chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 2px;
}
.nopturnia-chat-message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}
.nopturnia-chat-message-bot {
  justify-content: flex-start;
}
.nopturnia-chat-bot-avatar {
  font-size: 1.5rem;
  margin-right: 8px;
}
.nopturnia-chat-bot-text {
  background: #f2f6ff;
  color: #222;
  padding: 8px 12px;
  border-radius: 10px 10px 10px 2px;
  font-size: 0.98rem;
  max-width: 220px;
}
.nopturnia-chat-message-user {
  justify-content: flex-end;
  width: 100%;
}
.nopturnia-chat-user-text {
  background: #2a4bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px 10px 2px 10px;
  font-size: 0.98rem;
  max-width: 220px;
  margin-left: auto;
}

.nopturnia-chat-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nopturnia-chat-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e3e7f7;
  font-size: 1rem;
  outline: none;
}
.nopturnia-chat-send {
  background: #2a4bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.nopturnia-chat-send:hover {
  background: #1a2bbf;
}

/* Minimized State */
#nopturnia-chat-widget-minimized {
  width: 180px;
  height: 48px;
  background: #2a4bff;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border: 1px solid #e3e7f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}
.nopturnia-chat-header-minimized {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}
.nopturnia-chat-maximize {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 4px;
}

/* Desktop only: Hide chat widget on mobile/tablet */
@media (max-width: 768px) {
  #nopturnia-chat-widget, #nopturnia-chat-widget-minimized {
    display: none !important;
  }
}

/* Hide scroll bar for chat messages */
.nopturnia-chat-messages::-webkit-scrollbar {
  width: 6px;
  background: #f2f6ff;
}
.nopturnia-chat-messages::-webkit-scrollbar-thumb {
  background: #e3e7f7;
  border-radius: 6px;
}
