::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ecf0f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #bdc3c7 #ecf0f1;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-display: swap;
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: url(https://www.loliapi.com/acg/pe/) #fff;
  background-position: center;
  background-size: auto 100%;
  background-attachment: fixed;
  opacity: 0.7;
}

.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.glass {
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.dark .glass {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }
}

.fab {
  padding: 0px 10px;
  background: linear-gradient(135deg, #ff7eb3, #ff758c, #ff9a6c);
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  z-index: 1000;
  box-shadow:
    0 6px 20px rgba(255, 105, 180, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  -webkit-user-select: none;
  user-select: none;
}

.fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 8px 25px rgba(255, 105, 180, 0.8),
    0 0 0 6px rgba(255, 255, 255, 0.3);
  animation: none;
}

.fab:active {
  transform: scale(0.98);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4), 0 6px 20px rgba(255, 105, 180, 0.6);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 6px 20px rgba(255, 105, 180, 0.6);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0), 0 6px 20px rgba(255, 105, 180, 0.6);
  }
}

.tools-menu {
  position: absolute;
  top: 55px;
  right: 0;
  width: 280px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 999;
}

.tools-menu.open {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.menu-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #333;
  text-align: center;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 1);
}

.tool-list {
  list-style: none;
}

.tool-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
  cursor: pointer;
  color: #111;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tool-item:last-child {
  margin-bottom: 0;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

.tool-icon {
  margin-right: 14px;
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.loading,
.error {
  padding: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.error {
  color: #ff9e9e;
}