body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

#container {
    display: flex;
    height: 100vh;
}

#graph-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #fafafa;
    border-right: 1px solid #ddd;
}

#sidebar {
    width: 300px;
    padding: 20px;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

#search-container {
    margin-bottom: 20px;
}

#search-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#node-info {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #2196F3;
}

#edge-info {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #E91E63;
}

.info-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.info-content {
    margin-bottom: 5px;
    font-size: 14px;
}

.info-label {
    font-weight: bold;
    color: #555;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 300px;
    display: none;
}

.controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.control-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #f0f0f0;
}

.control-btn i {
    margin-right: 5px;
}

.legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-text {
    font-size: 12px;
}

.header {
    margin-bottom: 20px;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.header p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #777;
}

#stats {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
}

.stats-title {
    font-weight: bold;
    margin-bottom: 10px;
}