/* Search Box Styles */
.search-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 330px;
}

.search-icon-left {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1;
}

.search-icon-left svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.search-wrapper input {
  width: 100%;
  max-width: 100%;
  padding: 16px 60px 16px 40px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-width: 0;
}

.search-wrapper input:focus {
  background: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-wrapper input::placeholder {
  color: #9ca3af;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.search-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.search-btn svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* Responsive Styles for Search */
@media (max-width:768px){
  .search-box {
    max-width: 240px;
  }
  
  .search-wrapper {
    max-width: 240px;
  }
  
  .search-wrapper input {
    padding: 12px 50px 12px 36px;
    font-size: 14px;
  }
  
  .search-icon-left {
    left: 10px;
  }
  
  .search-icon-left svg {
    width: 14px;
    height: 14px;
  }
  
  .search-btn {
    padding: 10px;
  }
  
  .search-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width:480px){
  .search-box {
    max-width: 180px;
  }
  
  .search-wrapper {
    max-width: 180px;
  }
  
  .search-wrapper input {
    padding: 10px 45px 10px 32px;
    font-size: 13px;
  }
}