/* ============================================
   looksreal.ai — components.css
   Split from styles.css 2026-04-20 per css-restructure thread.
   ============================================ */
/* ============================================
   DROPDOWN COMPONENTS
   ============================================ */

.dropdown { position: relative; }

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.dropdown-trigger:hover {
  background: var(--border-subtle);
  border-color: var(--text-dim);
  color: var(--text-strong);
}
.dropdown-trigger.active {
  background: var(--border-subtle);
  border-color: var(--text-whisper);
  color: var(--text-strong);
}

.dropdown-chevron { font-size: 8px; color: var(--text-faint); margin-left: 2px; }

.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 100;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}
.dropdown-panel.open { display: block; }

.dropdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: none;
}
.dropdown-overlay.open { display: block; }

.dropdown-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-ghost);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* Model dropdown */
.model-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
}

.model-option {
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-card);
  position: relative;
}
.model-option:hover {
  border-color: var(--text-dim);
  background: var(--bg-app);
}
.model-option.selected {
  border-color: var(--ember);
  background: rgba(255,77,0,0.02);
}

.model-option-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-card);
  font-size: 10px;
}

.model-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.model-option-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-option-icon .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.model-option-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.model-option-desc {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  line-height: 1.5;
  transition: color 0.15s;
}
.model-option:hover .model-option-desc { color: var(--text-helper); }

/* Aspect dropdown */
.aspect-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.aspect-option:hover { background: var(--bg-app); }
.aspect-option.selected { background: rgba(255,77,0,0.03); }

.aspect-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aspect-icon-shape {
  border: 1.5px solid var(--text-whisper);
  border-radius: 2px;
  transition: border-color 0.15s;
}
.aspect-option.selected .aspect-icon-shape { border-color: var(--ember); }

.aspect-name {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-label);
  transition: color 0.15s;
}
.aspect-option.selected .aspect-name { font-weight: 500; color: var(--text-primary); }
.aspect-option:hover .aspect-name { color: var(--text-strong); }

.aspect-ratio-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-ghost);
  transition: color 0.15s;
}
.aspect-option.selected .aspect-ratio-label { color: var(--text-helper); }

.aspect-check { color: var(--ember); font-size: 12px; }

/* Simple list dropdown (count, duration) */
.simple-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-label);
  transition: all 0.1s;
}
.simple-option:hover { background: var(--bg-app); color: var(--text-strong); }
.simple-option.selected {
  background: rgba(255,77,0,0.03);
  color: var(--text-primary);
  font-weight: 500;
}
.simple-option .check { color: var(--ember); font-size: 12px; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

#toast-container {
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 18px;
  border-radius: 4px;
  color: var(--bg-card);
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  max-width: 340px;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-error); }
.toast-info { background: var(--color-info); }

/* ============================================
   STATUS MODAL (generation progress)
   ============================================ */

.status-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.status-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px 48px;
  text-align: center;
  min-width: 320px;
  max-width: 400px;
}

.status-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--ember);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-helper);
  margin-bottom: 16px;
}

.status-log {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.status-cancel {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 6px 20px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-helper);
  cursor: pointer;
  transition: all 0.15s;
}
.status-cancel:hover {
  border-color: var(--color-error);
  color: var(--color-error);
}

