/* DerrionAI Plugin Frontend Styles */
.derrionai-chat-container,
.derrionai-photo-container,
.derrionai-video-container {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.derrionai-messages {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.5rem;
}

.derrionai-message {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 0.5rem;
  max-width: 80%;
}

.derrionai-message.user {
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  margin-left: auto;
  text-align: right;
}

.derrionai-message.assistant {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.derrionai-input-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.derrionai-input {
  flex: 1;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  color: #f1f5f9;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.derrionai-input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.derrionai-button {
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.derrionai-button:hover {
  opacity: 0.9;
}

.derrionai-button:active {
  transform: scale(0.98);
}

.derrionai-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.derrionai-result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0.5rem;
  min-height: 100px;
}

.derrionai-result img,
.derrionai-result video {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.derrionai-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  border-top-color: #06b6d4;
  animation: derrionai-spin 1s linear infinite;
}

@keyframes derrionai-spin {
  to { transform: rotate(360deg); }
}

.derrionai-error {
  color: #ef4444;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.derrionai-success {
  color: #10b981;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .derrionai-input-wrapper {
    flex-direction: column;
  }
  
  .derrionai-button {
    width: 100%;
  }
}