/* ============================================================================
   quick-picker.css — Picker de respostas rápidas
   ============================================================================ */

.cf-qp-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10001;
  animation: cf-qp-fade 150ms ease-out;
}
@keyframes cf-qp-fade { from { opacity: 0; } to { opacity: 1; } }

.cf-qp-modal {
  background: #fff;
  border-radius: 14px;
  width: 95%; max-width: 720px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  font-family: 'Inter', sans-serif;
  animation: cf-qp-pop 180ms cubic-bezier(.2,.9,.3,1.2);
}
@keyframes cf-qp-pop {
  from { transform: scale(.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cf-qp-modal header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #E2E8F0;
}
.cf-qp-modal h3 {
  display: flex; align-items: center; gap: 8px;
  font-family: 'IBM Plex Serif', serif;
  font-weight: 400; font-size: 17px; margin: 0; color: #0F172A;
}
.cf-qp-modal h3 i { width: 17px; height: 17px; color: #1E5BAA; }
.cf-qp-x {
  background: transparent; border: 0; cursor: pointer;
  padding: 4px; color: #64748B;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.cf-qp-x:hover { background: #F1F5F9; color: #DC2626; }
.cf-qp-x i { width: 16px; height: 16px; }

.cf-qp-body {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  flex: 1;
}

.cf-qp-search {
  position: relative;
}
.cf-qp-search i {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: #94A3B8;
}
.cf-qp-search input {
  width: 100%; padding: 9px 12px 9px 32px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit; font-size: 13px;
}
.cf-qp-search input:focus {
  outline: 2px solid #1E5BAA;
  outline-offset: -1px; border-color: transparent;
}

.cf-qp-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.cf-qp-list {
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 4px;
}

.cf-qp-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: #0F172A;
  border-bottom: 1px solid #F1F5F9;
  position: relative;
}
.cf-qp-item:last-child { border-bottom: 0; }
.cf-qp-item:hover { background: #F8FAFC; }
.cf-qp-item.is-active {
  background: #DBEAFE;
}
.cf-qp-item code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #1E5BAA;
  font-weight: 600;
}
.cf-qp-item small {
  font-size: 11px; color: #64748B;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 100%;
}
.cf-qp-cat {
  position: absolute; top: 6px; right: 8px;
  font-size: 9px;
  background: #F1F5F9; color: #64748B;
  padding: 1px 6px; border-radius: 4px;
}

.cf-qp-preview {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.cf-qp-preview-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}
.cf-qp-preview-head code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #1E5BAA;
  background: #fff;
  padding: 2px 8px; border-radius: 4px;
  font-weight: 600;
}
.cf-qp-preview-head .cf-qp-cat { position: static; }
.cf-qp-preview-head small { color: #94A3B8; font-size: 11px; margin-left: auto; font-family: 'IBM Plex Mono', monospace; }
.cf-qp-preview-text {
  font-size: 13.5px;
  color: #0F172A;
  line-height: 1.6;
  white-space: pre-wrap;
  flex: 1;
}

.cf-qp-empty {
  padding: 24px; text-align: center;
  color: #94A3B8;
  font-size: 12.5px;
  font-style: italic;
}

.cf-qp-modal footer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #E2E8F0;
}
.cf-qp-btn-ghost, .cf-qp-btn-primary {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
}
.cf-qp-btn-primary {
  background: #1E5BAA; color: #fff;
}
.cf-qp-btn-primary:hover:not(:disabled) { background: #143C7E; }
.cf-qp-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.cf-qp-btn-ghost {
  background: transparent; color: #64748B;
}
.cf-qp-btn-ghost:hover { background: #F1F5F9; color: #0F172A; }
.cf-qp-btn-primary i { width: 14px; height: 14px; }
