body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#coordinates {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    color: white;
    font-size: 20px;
    text-align: center;
    pointer-events: none;
    z-index: 100;
}

#instructions {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    text-align: center;
}

#description-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
}

#description-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

/* Dropdown styles for sidebar units */
.unit-container {
    margin-bottom: 5px;
}

.unit-header {
    transition: all 0.3s ease;
    user-select: none;
}

.unit-header:hover {
    background-color: #444 !important;
}

.scenes-container {
    transition: all 0.3s ease;
}

.scenes-container button {
    transition: all 0.3s ease;
}

.scenes-container button:hover {
    background-color: #666 !important;
}

.scenes-container button.active {
    background-color: #007BFF !important;
}

.scenes-container button:last-child {
    border-bottom: none !important;
}

/* Scrollbar styling for sidebar */
#sidebar .unit-container::-webkit-scrollbar {
    width: 6px;
}

#sidebar .unit-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#sidebar .unit-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#sidebar .unit-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Sidebar collapse/expand button styling */
#sidebar button {
    transition: all 0.3s ease;
}

#sidebar button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Hamburger icon styling */
#sidebar .collapse-button {
    font-family: Arial, sans-serif;
    line-height: 1;
}

#sidebar .collapse-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Sidebar transition for smooth collapse/expand */
#sidebar {
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Ensure sidebar content doesn't interfere with 3D scene interaction */
#sidebar * {
    pointer-events: auto;
}

/* When sidebar is collapsed, ensure the button is visible */
#sidebar.collapsed {
    width: 54px !important;
}

#sidebar.collapsed .collapse-button {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 8px 10px !important;
    font-size: 16px !important;
}

/* LaTeX label styles */
.latex-label {
    color: black;
    font-size: 16px;
    /* padding-left: 2px;
    padding-right: 2px;
    padding-top: -5px;
    padding-bottom: -5px; */
    /* border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5); */
    pointer-events: none; /* So it doesn't interfere with mouse controls */
}
