/* Claude AI Ownership Chatbox Styles */
.chatbox-container.claude-ownership {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chatbox-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #5E3AE2;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(94, 58, 226, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbox-toggle:hover {
  background: #4B2FBF;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(94, 58, 226, 0.4);
}

.chatbox-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbox-header {
  background: #5E3AE2;
  color: white;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbox-title {
  font-weight: 600;
  font-size: 16px;
}

.chatbox-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.chatbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chatbox-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #F9FAFB;
}

.chatbox-welcome {
  text-align: center;
  color: #4B5563;
  font-size: 14px;
  padding: 20px;
}

.quick-actions {
  margin-top: 16px;
}

.quick-action-btn {
  display: inline-block;
  margin: 4px;
  padding: 8px 12px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 12px;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-action-btn:hover {
  background: #5E3AE2;
  color: white;
  border-color: #5E3AE2;
}

.message {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  background: #5E3AE2;
  color: white;
  margin-left: 20%;
  text-align: right;
}

.message.assistant {
  background: white;
  color: #1F2937;
  margin-right: 20%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.assistant h2,
.message.assistant h3 {
  margin: 12px 0 8px 0;
  color: #111827;
}

.message.assistant h2 {
  font-size: 16px;
}

.message.assistant h3 {
  font-size: 14px;
}

.message.assistant p {
  margin: 8px 0;
}

.message.assistant ul {
  margin: 8px 0;
  padding-left: 20px;
}

.message.assistant strong {
  color: #111827;
  font-weight: 600;
}

.message.typing {
  background: white;
  color: #6B7280;
  font-style: italic;
}

.typing-indicator {
  display: inline-flex;
  margin-left: 8px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

.chatbox-input-container {
  padding: 12px;
  background: white;
  border-top: 1px solid #E5E7EB;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chatbox-input {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  min-height: 36px;
  max-height: 120px;
}

.chatbox-input:focus {
  border-color: #5E3AE2;
}

.chatbox-send {
  width: 36px;
  height: 36px;
  background: #5E3AE2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chatbox-send:hover:not(:disabled) {
  background: #4B2FBF;
}

.chatbox-send:disabled {
  background: #E5E7EB;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .chatbox-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 120px);
    right: 20px;
    bottom: 90px;
  }
}