/* src/components/style-assistant/style-assistant.css */

:host {
  display: block;
  height: 100%;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.style-assistant {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: var(--background-color);
  border-radius: 16px;
  position: relative;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--background-color);
  z-index: 10;
  padding: 16px;
}

.assistant-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  margin: 0;
}

.assistant-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.avatar {
  width: 48px;
  height: 48px;
  background: var(--logo-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-text h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid var(--background-color-primary);
}

.status {
  margin: 4px 0 0;
  color: var(--gray-color);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.welcome-message {
  background: var(--card-background-color);
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.welcome-message p {
  margin: 0;
  line-height: 1.5;
}

.assistance-offer {
  background: var(--light-gray);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.primary-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.secondary-btn {
  background: white;
  color: var(--text-color);
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.input-section {
  display: flex;
  gap: 12px;
  background: var(--light-gray);
  padding: 12px 16px;
  position: sticky;
  bottom: 0;
  background: var(--background-color);
  z-index: 10;
}

.recommendation-input {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 16px;
  outline: none;
}

.send-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  cursor: pointer;
}

.back-button {
  position: absolute;
  top: 27px;
  left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background-color: transparent;
  color: var(--secondary-foreground);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s;
}

.back-button:hover {
  background: var(--muted);
}

.back-button svg {
  width: 18px;
  height: 18px;
}

footer {
  padding: 0 16px 16px 16px;
  position: sticky;
  bottom: 0;
  background: white;
  z-index: 10;
}

.helper-text {
  text-align: center;
  color: #666;
  font-size: 0.875rem;
  margin: 0;
}

/* Additional component-specific styles would be in their respective CSS files */

/* Add avatar styling */
app-header::part(avatar) {
  background-color: var(--logo-color);
  color: var(--primary-color);
}
