/* Default styles for EdgeGraph HTML info box */

.edge-graph-info-box {
    position: fixed;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

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

.edge-graph-info-box .info-box-header {
    padding: 15px 40px 15px 15px;
    border-radius: 8px 8px 0 0;
    color: white;
    position: relative;
}

.edge-graph-info-box .info-box-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.edge-graph-info-box .info-box-content {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.edge-graph-info-box .info-row {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.4;
}

.edge-graph-info-box .info-row:last-child {
    margin-bottom: 0;
}

.edge-graph-info-box .info-label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
    flex-shrink: 0;
}

.edge-graph-info-box .info-value {
    color: #333;
    word-break: break-word;
    margin-left: 5px;
}

.edge-graph-info-box .info-box-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    aspect-ratio: 1 / 1;
    padding: 20px;
}

.edge-graph-info-box .info-box-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Scrollbar styling for webkit browsers */
.edge-graph-info-box .info-box-content::-webkit-scrollbar {
    width: 6px;
}

.edge-graph-info-box .info-box-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.edge-graph-info-box .info-box-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.edge-graph-info-box .info-box-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Info box sections */
.edge-graph-info-box .info-section {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.edge-graph-info-box .info-section-title {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-size: 14px;
}

.edge-graph-info-box .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.edge-graph-info-box .info-tag {
    padding: 6px 10px;
    margin: 4px 0;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
}

.edge-graph-info-box .tag-votes {
    color: #666;
    font-size: 12px;
    font-weight: normal;
}

/* Custom styling example - add your own classes */
.custom-info-box-style {
    border: 2px solid #3498db;
    max-width: 500px;
}

.custom-info-box-style .info-box-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.custom-info-box-style .info-label {
    color: #3498db;
    font-weight: 700;
}
