/* Reset and base styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

body {
    position: relative;
    background-color: #f0f0f0;
}

canvas {
    width: 100%;
    height: 100vh;
    display: block;
    touch-action: none;
}

/* Navigation Cube Canvas */
#myNavCubeCanvas {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 20px;
    right: 280px; /* Position to the left of the metadata panel */
    z-index: 200000;
    pointer-events: all;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Make navigation cube more visible on hover */
#myNavCubeCanvas:hover {
    opacity: 1.0;
}

/* Loading indicator */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    z-index: 1100;
}

/* Status message */
#statusMessage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
}

/* Controls container */
.controls {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.controls button:not(.xeokit-btn) {
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.controls button:not(.xeokit-btn):hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Selection info */
.selection-info {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 4px;
    max-width: 300px;
    z-index: 1000;
}

/* Make sure the canvas is on the bottom layer */
#myCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.no-select {
    user-select: none;
}

#metadataBox.collapsed #metadataContent {
    display: none;
}
#metadataBox.collapsed {
    height: 36px; /* Just enough for the header */
    min-height: unset;
    max-height: unset;
    overflow: hidden;
}
#metadataHeader {
    user-select: none;
}

/* Logo + Sign In bar, fixed top-left */
.labsfuture-topbar {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 210000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.labsfuture-auth {
    display: flex;
    gap: 6px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 6px 8px;
}

.labsfuture-plan {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #374151;
    white-space: nowrap;
}

.labsfuture-plan.active { background: #dcfce7; color: #166534; }
.labsfuture-plan.attention { background: #fef3c7; color: #92400e; cursor: pointer; }
.labsfuture-plan.clickable { cursor: pointer; }

.labsfuture-account {
    background: #f0f4ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.labsfuture-home-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 8px 12px;
    text-decoration: none;
}

.labsfuture-logo {
    height: 90px;
    width: auto;
    display: block;
} 