/* Ảnh nút mở popup */
.mac-search-trigger {
  display: inline-block;
  cursor: pointer;
}
.mac-search-img {
  width: 50px;
  height: 50px;
  transition: transform 0.2s;
  cursor: pointer;
}
.mac-search-img:hover {
  transform: scale(1.05);
}

/* Overlay */
.mac-search-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18vh; /* chếch lên phía trên */
  z-index: 9999;
  transition: opacity 0.25s ease;
}

/* Container */
.mac-spotlight-container {
  width: 600px;
  max-width: 90%;
}

/* Ô tìm kiếm chính */
.mac-spotlight-search {
  display: flex;
  align-items: center;
  background: #eaeaea;
  border-radius: 14px;
  padding: 6px 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  border: 2px solid #ccc;
  transition: all 0.3s ease;
}

/* Icon search */
.mac-spotlight-search .icon {
  color: #999;
  margin-right: 14px;
  flex-shrink: 0;
}

/* Input kiểu macOS */
.mac-spotlight-search input {
  width: 100%;
  background-color: transparent !important;
  border: none !important;
  outline: none;
  font-size: 20px !important;
  color: #333 !important;
  font-weight: 400;
  letter-spacing: 0.2px;
  box-shadow: none !important;
}
.mac-spotlight-search input::placeholder {
  color: #999;
}

/* Hiệu ứng focus */
.mac-spotlight-search:focus-within {
  background: #eaeaea !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3) !important;
}

.mac-spotlight-search input[type="text"]:focus {
  background-color: #eaeaea;
  box-shadow: 0 0 5px #ccc;
  color: #333;
  opacity: 1 !important;
  outline: 0;
}

/* Hiệu ứng xuất hiện */
.mac-spotlight-container {
  animation: slideDown 0.25s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
