/* ============================================
   Doctor Filter Bar
   ============================================ */

.drb-filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 20px;
  align-items: end;
}

.drb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.drb-filter-search { grid-column: span 2; }

.drb-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.drb-input,
.drb-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.drb-select {
  appearance: none;
  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'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.drb-input:focus,
.drb-select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

/* Search wrapper with icon + live results */
.drb-search-wrap {
  position: relative;
  width: 100%;
}

.drb-search-wrap .drb-input {
  padding-right: 40px;
}

.drb-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Live results dropdown */
.drb-live-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  z-index: 50;
  padding: 6px;
}

.drb-live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #111827;
  transition: background .12s;
}

.drb-live-item:hover,
.drb-live-item:focus {
  background: #f3f4f6;
}

.drb-live-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.drb-live-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.drb-live-item small {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.drb-live-empty {
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Verified checkbox */
.drb-filter-check { align-self: end; }

.drb-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.drb-checkbox input { accent-color: #059669; }

.drb-checkbox:hover { border-color: #9ca3af; }

/* Buttons */
.drb-filter-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.drb-btn-primary {
  height: 42px;
  padding: 0 20px;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}

.drb-btn-primary:hover { background: #047857; }

.drb-btn-ghost {
  height: 42px;
  padding: 0 16px;
  background: transparent;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background .15s;
}

.drb-btn-ghost:hover { background: #f3f4f6; }

/* Active filter chips */
.drb-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  font-size: 13px;
}

.drb-active-label {
  color: #6b7280;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.drb-chip-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}

.drb-chip-remove:hover {
  background: #d1fae5;
  text-decoration: none;
}

.drb-chip-remove span {
  font-size: 16px;
  line-height: 1;
  color: #059669;
}

.drb-clear-all {
  margin-left: auto;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
}

/* Empty state */
.drb-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f9fafb;
  border-radius: 12px;
}

.drb-empty-state p {
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 16px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .drb-filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .drb-filter-search { grid-column: span 2; }
}

@media (max-width: 640px) {
  .drb-filter-bar {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .drb-filter-search { grid-column: auto; }
  .drb-filter-actions { flex-direction: column; }
  .drb-filter-actions .drb-btn-primary,
  .drb-filter-actions .drb-btn-ghost { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════
   ✅ Fix: .drb-filter-actions button styles
   (`.drb-btn` global এখন primary color নেয় — 
   কিন্তু filter-এ আলাদা class দরকার হলে)
   ══════════════════════════════════════════ */
.drb-filter-bar .drb-btn-primary {
  background: var(--drb-primary);
}
.drb-filter-bar .drb-btn-primary:hover {
  background: var(--drb-primary-dark);
}

/* ✅ Mobile এ filter layout stack */
@media (max-width: 480px) {
  .drb-filter-bar {
    gap: 10px;
    padding: 14px;
  }
  .drb-filter-actions {
    flex-direction: column;
    width: 100%;
  }
  .drb-filter-actions .drb-btn-primary,
  .drb-filter-actions .drb-btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

.drb-share {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--drb-border);
}

.drb-share h3 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.drb-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drb-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  color: #fff !important;
}

.drb-share-fb  { background: #1877f2; }
.drb-share-wa  { background: #25d366; }
.drb-share-tw  { background: #1d9bf0; }
.drb-share-copy {
  background: var(--drb-bg-soft);
  color: var(--drb-text) !important;
  border: 1px solid var(--drb-border);
}

.drb-share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.drb-share-copy:hover {
  background: var(--drb-primary-light);
}