/* ai-assistant.css */
:root {
  --ai-primary: #6c5ce7;
  --ai-secondary: #a29bfe;
  --ai-accent: #fdcb6e;
  --ai-bg: rgba(255, 255, 255, 0.85);
  --ai-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Floating elements removed */


/* Chat Window Styles removed */


#ai-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary));
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

#ai-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
}

#ai-header i {
  font-size: 1.2rem;
}

#ai-close {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

#ai-close:hover {
  opacity: 1;
}

#ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--ai-secondary) transparent;
}

#ai-messages::-webkit-scrollbar {
  width: 5px;
}

#ai-messages::-webkit-scrollbar-thumb {
  background: var(--ai-secondary);
  border-radius: 10px;
}

.ai-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.ai-bubble.assistant {
  align-self: flex-start;
  background: white;
  color: #2d3436;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ai-bubble.user {
  align-self: flex-end;
  background: var(--ai-primary);
  color: white;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.2);
}

#ai-input-area {
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 10px;
  align-items: center;
}

#ai-input-area input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  transition: border 0.3s;
}

#ai-input-area input:focus {
  border-color: var(--ai-primary);
}

#ai-send {
  width: 40px;
  height: 40px;
  background: var(--ai-primary);
  color: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#ai-send:hover {
  transform: scale(1.1);
}

/* Typing indicator */
.typing {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: -10px;
  margin-left: 10px;
  display: none;
}

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

/* Proactive Chip */
.ai-chip {
  background: white;
  border: 1px solid var(--ai-secondary);
  color: var(--ai-primary);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  margin-bottom: 8px;
}

.ai-chip:hover {
  background: var(--ai-primary);
  color: white;
}

/* Spell Check Highlights */
.spell-error {
  border-bottom: 2px dotted #ff7675;
  background: rgba(255, 118, 117, 0.1);
  cursor: pointer;
}

/* Visibility Control */
.ai-hidden {
  display: none !important;
}

