/* Modern Dropdown Overrides — app.babyzilla.ai
   Replaces native OS select styling with custom chevron + modern aesthetics */

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 32px !important;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  cursor: pointer;
  outline: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

select:hover:not(:focus):not(:disabled) {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

select:disabled {
  opacity: .55;
  cursor: not-allowed;
  background-color: #f3f4f6;
}

/* Remove Firefox default arrow */
select::-ms-expand {
  display: none;
}

/* ── Dark theme containers (campaign builder, sequence builder, etc.) ── */
[class*="bg-slate-9"] select,
[class*="bg-slate-8"] select,
[style*="background:#0a"] select,
[style*="background: #0a"] select,
[style*="background:#12"] select,
[style*="background: #12"] select,
[style*="background:#1e"] select,
[style*="background: #1e"] select {
  background-color: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

[class*="bg-slate-9"] select:hover:not(:focus):not(:disabled),
[class*="bg-slate-8"] select:hover:not(:focus):not(:disabled),
[style*="background:#0a"] select:hover:not(:focus):not(:disabled),
[style*="background: #0a"] select:hover:not(:focus):not(:disabled) {
  border-color: #64748b;
  background-color: #253247;
}

[class*="bg-slate-9"] select:focus,
[class*="bg-slate-8"] select:focus,
[style*="background:#0a"] select:focus,
[style*="background: #0a"] select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167,139,250,.2);
}

/* Dark select option styling (Webkit) */
[class*="bg-slate-9"] select option,
[class*="bg-slate-8"] select option {
  background-color: #1e293b;
  color: #e2e8f0;
}

/* ── Toolbar selects (compact) ── */
.toolbar select,
[class*="border-b"][class*="border-gray"] select {
  padding: 4px 28px 4px 8px;
  font-size: 13px;
  border-radius: 6px;
}

/* ── Panel / form selects ── */
[class*="rounded-lg"][class*="shadow"] select,
[role="dialog"] select {
  padding: 8px 32px 8px 12px;
  font-size: 14px;
}
