@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#visualization-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#items-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

#items-table tr.selected {
    background: rgba(59, 130, 246, 0.2);
}

input, button {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05) !important;
    transition: all 0.2s ease;
}
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

canvas {
    display: block;
}

.item-rect {
    transition: all 0.3s ease-out;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#items-table tr.overflow-row {
    background: rgba(239, 68, 68, 0.15) !important;
}

#items-table tr.overflow-row:hover {
    background: rgba(239, 68, 68, 0.25) !important;
}

.toast {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: all 0.3s ease;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-warning {
    background: rgba(220, 38, 38, 0.95);
    border: 1px solid #EF4444;
    color: white;
    animation: pulse-warning 2s ease-in-out infinite;
}

.toast-info {
    background: rgba(59, 130, 246, 0.95);
    border: 1px solid #3B82F6;
    color: white;
}

.toast-success {
    background: rgba(16, 185, 129, 0.95);
    border: 1px solid #10B981;
    color: white;
}

@keyframes pulse-warning {
    0%, 100% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 25px rgba(220, 38, 38, 0.9); }
}