/* Knowledge Graph Styles - Designer Handoff */

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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #030303;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

#network-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

#info-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

#info-panel h1 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#info-panel .stat {
    margin: 8px 0;
    font-size: 13px;
    color: #a1a1a1;
}

#info-panel .stat strong {
    color: #ffffff;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 15px 25px;
    z-index: 100;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    align-items: center;
}

#controls button {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #7c3aed;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    transition: all 0.2s;
}

#controls button:hover {
    background: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

#controls button.active {
    background: #7c3aed;
    color: #ffffff;
}

#legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 15px;
    z-index: 100;
    backdrop-filter: blur(10px);
    font-size: 12px;
}

#legend h3 {
    color: #7c3aed;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
}

#legend .legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    gap: 10px;
}

#legend .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#node-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 15px;
    max-width: 350px;
    z-index: 100;
    backdrop-filter: blur(10px);
    display: none;
}

#node-info.visible {
    display: block;
}

#node-info h3 {
    color: #7c3aed;
    margin-bottom: 10px;
    font-size: 14px;
}

#node-info p {
    font-size: 12px;
    color: #a1a1a1;
    margin: 5px 0;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #00ff41;
    border-radius: 8px;
    padding: 15px 20px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
}

.toast.visible {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#search-box {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #7c3aed;
    border-radius: 8px;
    padding: 10px 15px;
    z-index: 100;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 10px;
    align-items: center;
}

#search-box input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    outline: none;
    width: 300px;
}

#search-box input::placeholder {
    color: #666;
}











