/* Property Graph Model - MicroSim Styles
 * Aria color theme: indigo primary, amber accent
 */

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

body {
    font-family: Arial, sans-serif;
    background-color: aliceblue;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
}

#network {
    width: 100%;
    height: 100%;
    background-color: aliceblue;
}

.title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: black;
    background-color: aliceblue;
    z-index: 10;
}

/* Legend */
.legend {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.legend-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 3px 0;
    font-size: 12px;
}

.legend-color {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid;
    flex-shrink: 0;
}

.color-employee {
    background-color: #D4880F;
    border-color: #B06D0B;
    border-radius: 50%;
}

.color-department {
    background-color: #303F9F;
    border-color: #1A237E;
    border-radius: 3px;
}

.color-project {
    background-color: #FFD700;
    border-color: #B8960F;
    border-radius: 3px;
    transform: rotate(45deg);
    width: 12px;
    height: 12px;
    margin-left: 1px;
    margin-right: 7px;
}

.legend-edge {
    display: inline-block;
    width: 20px;
    height: 0;
    border-top: 3px solid;
    flex-shrink: 0;
    margin-right: 6px;
}

/* Right Panel */
.right-panel {
    position: absolute;
    top: 50px;
    right: 10px;
    width: 270px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.status-info {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
    color: #303F9F;
}

.status-text {
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}

/* Details Panel */
.details-panel {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 350px;
    overflow-y: auto;
}

.details-content {
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}

.details-prompt {
    color: #888;
    font-style: italic;
    font-size: 12px;
}

.detail-type {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.detail-type-employee {
    background-color: rgba(212, 136, 15, 0.15);
    color: #B06D0B;
}

.detail-type-department {
    background-color: rgba(48, 63, 159, 0.12);
    color: #303F9F;
}

.detail-type-project {
    background-color: rgba(255, 215, 0, 0.2);
    color: #8B6914;
}

.detail-type-edge {
    background-color: rgba(0, 0, 0, 0.08);
    color: #555;
}

.detail-name {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    margin-bottom: 6px;
}

.detail-props {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-props li {
    padding: 3px 0;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.detail-props li:last-child {
    border-bottom: none;
}

.prop-key {
    font-weight: 600;
    color: #333;
}

.detail-cypher-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 3px;
}

.detail-cypher {
    margin-top: 4px;
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    color: #303F9F;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-all;
    border-left: 3px solid #D4880F;
}

/* Navigation Buttons */
div.vis-network div.vis-navigation div.vis-button.vis-up,
div.vis-network div.vis-navigation div.vis-button.vis-down,
div.vis-network div.vis-navigation div.vis-button.vis-left,
div.vis-network div.vis-navigation div.vis-button.vis-right,
div.vis-network div.vis-navigation div.vis-button.vis-zoomIn,
div.vis-network div.vis-navigation div.vis-button.vis-zoomOut,
div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {
    background-color: rgba(48, 63, 159, 0.15) !important;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .title { font-size: 16px; }
    .right-panel { width: 200px; }
}
