/* ==========================================================================
   toolbar.css - Toolbar selects, icon buttons, account pill
   Dooze Clip Generator
   ========================================================================== */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.tools-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.aspect-select {
  background-color: rgba(255, 255, 255, 0.08);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4c7c5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 11px 11px;
  border: 0 !important;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  height: 36px;
  padding: 0 30px 0 14px;
  border-radius: var(--radius-pill);
  transition: all 140ms ease-out;
  appearance: none;
  -webkit-appearance: none;
}

.aspect-select:hover,
.aspect-select:focus {
  background-color: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.aspect-select option {
  background-color: var(--surface);
  color: var(--text-primary);
}

/* Tombol kelola akun: permukaan lembut bergaya pill Gemini tanpa garis */
.btn-account-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 0 !important;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--duration-fast, 150ms) var(--ease-gemini), transform var(--duration-fast, 150ms) var(--ease-gemini);
}

.btn-account-pill:hover {
  background-color: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.btn-account-pill:active {
  transform: scale(0.96);
}

.btn-account-pill svg {
  width: var(--icon-size-sm, 16px);
  height: var(--icon-size-sm, 16px);
  stroke: currentColor;
  fill: none;
  stroke-width: var(--icon-stroke, 1.8px);
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ==========================================================================
   Unified Generation Settings Pill (Gaya Resmi Google Vids)
   ========================================================================== */
.vids-settings-pill-container {
  position: relative;
  display: inline-block;
}

.vids-settings-pill {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 0 !important;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
  user-select: none;
}

.vids-settings-pill:hover,
.vids-settings-pill.is-active {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.vids-settings-pill:active {
  transform: scale(0.97);
}

.vids-pill-chevron {
  transition: transform 180ms ease;
  color: var(--text-tertiary);
}

.vids-settings-pill.is-active .vids-pill-chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

/* Floating Settings Popover */
.vids-settings-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 310px;
  background: var(--surface, #1e1f20);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
  backdrop-filter: blur(16px);
  animation: popoverFadeIn 150ms ease-out;
}

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

.vids-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vids-popover-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.vids-model-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #a8c7fa);
  background: rgba(168, 199, 250, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.vids-popover-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vids-popover-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vids-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vids-chip {
  background: rgba(255, 255, 255, 0.045);
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vids-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.vids-chip.is-active {
  background: #7ea832;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(126, 168, 50, 0.28);
}

.vids-ratio-icon {
  font-size: 13px;
  line-height: 1;
}

/* Circular Generate Button (Google Vids Official) */
.btn-generate-circle {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--accent, #a8c7fa) !important;
  color: #040c1e !important;
  box-shadow: 0 2px 10px rgba(168, 199, 250, 0.35) !important;
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease !important;
}

.btn-generate-circle:hover:not(:disabled) {
  transform: scale(1.06) !important;
  box-shadow: 0 4px 14px rgba(168, 199, 250, 0.5) !important;
}

.btn-generate-circle:active:not(:disabled) {
  transform: scale(0.94) !important;
}
