.searchWrap {
  position: relative;
  width: 100%;
}

.inputRow {
  position: relative;
  display: flex;
  align-items: center;
}

.searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
}

.input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 0 40px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.input:focus {
  outline: none;
  background: rgba(0, 209, 255, 0.05);
  border-color: rgba(0, 209, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 209, 255, 0.1);
}

.clearBtn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.clearBtn:hover {
  color: var(--text-primary);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(0, 209, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  text-align: start;
  cursor: pointer;
  transition: var(--transition-fast);
}

.result:last-child {
  border-bottom: none;
}

.result:hover {
  background: rgba(0, 209, 255, 0.08);
}

.resultIcon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.resultInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resultName {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.resultMeta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.viewAll {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: rgba(0, 209, 255, 0.05);
  border: none;
  color: var(--electric-blue);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.viewAll:hover {
  background: rgba(0, 209, 255, 0.1);
}

.noResults {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  padding: 24px;
  text-align: center;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 100;
}

[dir='rtl'] .searchIcon {
  left: auto;
  right: 14px;
}

[dir='rtl'] .clearBtn {
  right: auto;
  left: 14px;
}
