.header-content,
.search-wrap {
  display: flex;
  align-items: center;
}
.footer-legal,
.text-center {
  text-align: center;
}
:root {
  --primary: #2c5282;
  --secondary: #e53e3e;
  --accent: #9bd7d1;
  --surface: #ffffff;
  --border: #cbd5e0;
  --text: #2d3748;
  --text-light: #718096;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #f1f5f9;
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.container {
  width: 100%;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.header {
  background: rgb(50 93 121 / 0.96);
  color: #fff;
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.header-content {
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
}
.search-wrap {
  background: rgb(255 255 255 / 0.15);
  border-radius: 12px;
  padding: 4px;
  flex: 1;
  max-width: 230px;
  border: 1px solid rgb(255 255 255 / 0.2);
}
.btn,
.item-row,
.items-center {
  align-items: center;
}
.search-input {
  background: #fff0;
  border: none;
  color: #fff;
  padding: 6px 8px;
  width: 100%;
  outline: 0;
  font-size: 14px;
}
.search-input::placeholder {
  color: rgb(255 255 255 / 0.7);
}
.search-btn {
  background: rgb(242 102 39 / 0.96);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / 0.2);
}
.search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.2rem;
  background: rgb(50 93 121 / 0.96);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.1);
}
.search-dropdown-item {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.search-dropdown-item:hover {
  background: rgb(50 93 121 / 0.1);
}
.search-no-results {
  padding: 1rem;
  color: var(--text-light);
  text-align: center;
}
.item-row {
  display: grid;
  grid-template-columns: 3fr 2fr auto;
  gap: 12px;
  padding: 12px;
  background: rgb(255 255 255 / 0.7);
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid rgb(255 255 255 / 0.2);
}
.btn,
.footer {
  background: var(--primary);
}
.item-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgb(50 93 121 / 0.1);
  transform: translateY(-2px);
}
.item-row input[type="text"] {
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.8);
  width: 100%;
}
.item-row input[type="text"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.footer {
  background: rgb(50 93 121 / 0.96);
  color: #fff;
  padding: 60px 0 20px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.footer-legal {
  padding-top: 20px;
  border-top: 1px solid;
  color: rgb(255 255 255 / 0.7);
  font-size: 13px;
}
.btn,
.btn-delete {
  color: #fff;
  cursor: pointer;
}
.btn {
  background: rgb(50 93 121 / 0.96);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgb(255 255 255 / 0.2);
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.btn-delete {
  background: #ef4444;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
}
.flex {
  display: flex;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 16px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .item-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .search-wrap {
    max-width: 180px;
  }
  .header-content {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  .btn {
    width: 100%;
  }
  .flex.gap-2.justify-center {
    flex-direction: column;
  }
}
.hero {
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgb(255 255 255 / 0.22);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.1);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.hero p {
  font-size: 0.85rem;
  color: var(--text-light);
}
.card-block {
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  background: rgb(255 255 255 / 0.2);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.1);
  margin-bottom: 0.8rem;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgb(50 93 121 / 0.08);
  margin-bottom: 0.6rem;
}
.card-title-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.card-title-wrap span {
  background: var(--primary);
  color: #fff;
  padding: 0.08rem 0.45rem;
  border-radius: 8px;
  font-size: 0.65rem;
}
.tools-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}
.name-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 0.2rem;
  margin-top: 0.2rem;
}
.tool-card {
  background: rgb(255 255 255 / 0.2);
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.3rem;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  backdrop-filter: blur(10px) saturate(160%);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgb(50 93 121 / 0.1);
}
.icon-wrapper {
  width: 32px;
  height: 32px;
  background: #9bd7d1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 6px rgb(0 0 0 / 0.1),
    -3px -3px 6px rgb(255 255 255 / 0.1);
  margin-bottom: 0.3rem;
}
.icon-wrapper .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.icon-wrapper .icon img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}
.icon-section {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.tool-name {
  font-size: 0.6rem;
  font-weight: 500;
  text-align: center;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.8em;
  line-height: 1.2;
  margin: 0;
  width: 100%;
  line-clamp: 2;
  display: block;
}
.status-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  }
  .tool-card {
    height: 88px;
  }
}
@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  }
  .tool-card {
    height: 85px;
    padding: 0.5rem 0.2rem;
  }
  .icon-wrapper {
    width: 30px;
    height: 30px;
  }
  .tool-name {
    font-size: 0.55rem;
  }
}
