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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

.controls {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-primary:active {
    background-color: #21618c;
}

.btn-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.status-message {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.success {
    color: #2ecc71;
}

.status-message.error {
    color: #e74c3c;
}

.last-updated {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-style: italic;
}

main {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 1rem;
    padding: 1rem;
    height: calc(100vh - 180px);
    max-height: 800px;
}

.legend {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.legend h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

#network {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
}

.info-panel {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.info-panel h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.help-text {
    color: #7f8c8d;
    font-size: 0.875rem;
    font-style: italic;
}

#entityDetails {
    margin-top: 1rem;
}

#entityDetails .detail-row {
    margin-bottom: 0.75rem;
}

#entityDetails .detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#entityDetails .detail-value {
    color: #555;
    font-size: 0.875rem;
    word-break: break-word;
}

footer {
    background-color: #34495e;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 0.875rem;
}

footer code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

/* Concept Summary Styles */
.concept-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #9013FE;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h3 {
    color: #9013FE;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.summary-section p {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.6;
}

.summary-content {
    color: #555;
    font-size: 0.875rem;
    line-height: 1.6;
}

.summary-content h4 {
    color: #2c3e50;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.summary-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.summary-content br {
    margin-bottom: 0.5rem;
}
