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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f141b 0%, #111827 50%, #0f141b 100%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

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

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

/* Think tank list item */
.tt-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.tt-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

.tt-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: currentColor;
}

.tt-item.filtered {
    opacity: 1;
}

.tt-item.filtered:not(.active) {
    opacity: 0.3;
}

.tt-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.tt-info {
    flex: 1;
}

.tt-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.tt-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.tt-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: auto;
}

/* Filter buttons */
.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: #4f46e5 !important;
    color: white;
}

/* Canvas container */
#canvas-container {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
}

/* Tooltip */
#tooltip {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}