/* Aidjøf™ — Chat widget styles */

#aidjof-app {
  display: flex;
  flex-direction: column;
  height: 560px;
  max-width: 720px;
  margin: 2rem auto;
  border: 1px solid #e0ddd6;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  background: #ffffff;
  color: #1a1a1a;
}

/* Header */
#aidjof-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid #e0ddd6;
  background: #ffffff;
}

#aidjof-logo {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #1D4E8F;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

#aidjof-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

#aidjof-header-text strong {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

#aidjof-header-text span {
  font-size: 12px;
  color: #6b6b6b;
}

#aidjof-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #E6F1FB;
  color: #185FA5;
  font-weight: 500;
  white-space: nowrap;
}

/* Messages */
#aidjof-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafaf8;
}

.aidjof-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.aidjof-msg.aidjof-user {
  flex-direction: row-reverse;
}

.aidjof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E6F1FB;
  color: #185FA5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.aidjof-user .aidjof-avatar {
  background: #f0ede6;
  color: #555;
}

.aidjof-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.6;
  font-size: 14px;
}

.aidjof-ai .aidjof-bubble {
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-bottom-left-radius: 4px;
  color: #1a1a1a;
}

.aidjof-user .aidjof-bubble {
  background: #1D4E8F;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.aidjof-typing-bubble {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 12px 16px;
}

.aidjof-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa;
  animation: aidjof-bounce 1.2s infinite;
}

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

@keyframes aidjof-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-5px); }
}

/* Suggestions */
.aidjof-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.aidjof-suggestion {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 20px;
  border: 1px solid #d0cdc6;
  background: #fafaf8;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.aidjof-suggestion:hover {
  background: #f0ede6;
}

/* Disclaimer */
#aidjof-disclaimer {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 6px 16px;
  background: #ffffff;
  border-top: 1px solid #e0ddd6;
  margin: 0;
}

/* Input footer */
#aidjof-footer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 12px 14px;
  border-top: 1px solid #e0ddd6;
  background: #ffffff;
}

#aidjof-input {
  flex: 1;
  resize: none;
  border: 1px solid #d0cdc6;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  outline: none;
  min-height: 40px;
  max-height: 100px;
  line-height: 1.5;
  transition: border-color 0.15s;
}

#aidjof-input:focus {
  border-color: #1D4E8F;
}

#aidjof-input::placeholder {
  color: #aaa;
}

#aidjof-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: #1D4E8F;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

#aidjof-send:hover {
  opacity: 0.85;
}

#aidjof-send:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Mobil */
@media (max-width: 600px) {
  #aidjof-app {
    height: 480px;
    margin: 1rem 0;
    border-radius: 8px;
  }

  .aidjof-bubble {
    max-width: 90%;
  }

  #aidjof-badge {
    display: none;
  }
}
