/* Spinner */
.spinner {
  display: none;
  margin: 20px auto;
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #553c9a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* No results */
#no-results {
  display: none;
  text-align: center;
  color: #555;
  font-size: 1.25rem;
  margin: 20px 0;
}

/* Tools Container Grid */
.container-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Tool Cards */
.card-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-tools:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.icon-container {
  background: linear-gradient(45deg, #553c9a, #ee4b2b);
  color: #fff;
  padding: 10px;
  border-radius: 40%;
  font-size: 15px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  font-weight: bold;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-tools:hover .title {
  color: #553c9a; /* highlight on hover */
}

.new-badge {
  display: inline-block;
  background-color: #dd0013;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 25px;
  vertical-align: middle;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.pagination button {
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background-color: #f1f1f1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover {
  background: #553c9a;
  color: white;
}

.pagination button:disabled {
  cursor: not-allowed;
  background-color: #ddd;
}

.category-nav {
    display: flex
;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 20px auto;
}
.category-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  background-color: #e5e5e5;
  color: #444;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.category-item:hover {
  background: linear-gradient(45deg, #553c9a, #ee4b2b);
  color: #fff;
  transform: translateY(-2px);
}
.category-item i {
  font-size: 14px;
}
.category-item.active {
  background: linear-gradient(45deg, #553c9a, #ee4b2b);
  color: #fff;
}

/* Control Bar */
.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

#categoryFilter {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f1f1f1;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.search-bar input {
  width: 100%;
  max-width: 300px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.tools-section-container {
    max-width: 1250px;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    transition: background-color 0.3sease;
}

.tool-count {
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-weight: bold;
  margin-left: 4px;
}

.tool-count.updated {
  transform: scale(1.2);
  opacity: 0.6;
}

