body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #fdfdfd;
  color: #1a1a1a;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.crafting-board {
    background-image: radial-gradient(circle, #e0e0e0 1px, rgba(0,0,0,0) 1px);
    background-size: 20px 20px;
}

.sidebar {
    background-color: #f7f7f7;
    border-left: 1px solid #e5e7eb;
}

.sidebar-search {
    position: sticky;
    bottom: 0;
    background-color: #f7f7f7;
    z-index: 10;
    border-top: 1px solid #e5e7eb;
    padding: 12px;
}

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

.sidebar-item {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  padding: 12px 16px;
}

.sidebar-item:hover {
  background-color: #ebebeb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(to right, transparent, #d1d5db, transparent);
}

.sidebar-item:hover::after {
  opacity: 0;
}

.sidebar-item span {
  font-weight: 700;
}

.element {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.element:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.element.crafting {
    animation: pulse 1.5s infinite;
    background-color: #eff6ff;
    border-color: #93c5fd;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
  50% { transform: scale(1.05); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2); }
  100% { transform: scale(1); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #282828;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    bottom: 40px;
}