/* Polsia Chat Widget (Sol) - Feature-flagged UI */

:root {
  --nu-bg: #000000;
  --nu-cyan: #00F5FF;
  --nu-text: #FFFFFF;
}

#polsia-chat-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.polsia-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--nu-cyan);
  color: var(--nu-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 245, 255, 0.3);
  transition: all 0.2s ease;
}

.polsia-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 245, 255, 0.5);
}

.polsia-chat-toggle:active {
  transform: scale(0.95);
}

.polsia-chat-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-height: 600px;
  background: var(--nu-bg);
  border: 1px solid var(--nu-cyan);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 245, 255, 0.2);
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.polsia-chat-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.polsia-chat-header {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.polsia-chat-header h3 {
  margin: 0;
  color: var(--nu-cyan);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.polsia-chat-close {
  background: none;
  border: none;
  color: var(--nu-cyan);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.polsia-chat-close:hover {
  opacity: 1;
}

.polsia-chat-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  color: var(--nu-text);
  font-size: 13px;
  line-height: 1.6;
}

.polsia-chat-content p {
  margin: 0 0 12px 0;
}

.polsia-chat-message {
  padding: 8px 12px;
  background: rgba(0, 245, 255, 0.1);
  border-left: 2px solid var(--nu-cyan);
  margin-bottom: 8px;
  border-radius: 4px;
  font-size: 12px;
}

.polsia-chat-footer {
  padding: 12px;
  border-top: 1px solid rgba(0, 245, 255, 0.2);
  display: flex;
  gap: 8px;
}

.polsia-chat-input {
  flex: 1;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--nu-text);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
}

.polsia-chat-input:focus {
  outline: none;
  border-color: var(--nu-cyan);
  background: rgba(0, 245, 255, 0.1);
}

.polsia-chat-send {
  background: var(--nu-cyan);
  color: var(--nu-bg);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.polsia-chat-send:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.polsia-chat-send:active {
  transform: scale(0.95);
}

/* Scrollbar styling */
.polsia-chat-content::-webkit-scrollbar {
  width: 6px;
}

.polsia-chat-content::-webkit-scrollbar-track {
  background: transparent;
}

.polsia-chat-content::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.2);
  border-radius: 3px;
}

.polsia-chat-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 255, 0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .polsia-chat-panel {
    width: calc(100vw - 40px);
    max-height: 70vh;
    right: 20px;
  }
}
