/* Metadata panel styles */
#metadataBox {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 300px;
    min-height: 100px;
    max-height: calc(100vh - 40px);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: transform 0.3s ease;
}

#metadataHeader {
    padding: 10px 15px;
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#metadataHeader::after {
    content: '−';
    font-size: 20px;
}

#metadataBox.collapsed #metadataHeader::after {
    content: '+';
}

#metadataBox.collapsed #metadataContent {
    display: none;
}

#metadataContent {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
}

#metadataTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#metadataTable th, 
#metadataTable td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    word-break: break-word;
    max-width: 180px;
}

#metadataTable th {
    font-weight: bold;
    color: #333;
    position: sticky;
    top: 0;
    background-color: #f5f5f5;
}

#metadataTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#metadataTable tr:hover {
    background-color: #f0f0f0;
}

/* Style for property names */
#metadataTable td:first-child {
    font-weight: 500;
    color: #555;
}

/* Style for property values */
#metadataTable td:last-child {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #metadataBox {
        width: 250px;
    }
} 