/* 3D App Icons Container */
#app-icons-container {
    width: 100%;
    min-height: 106px; /* Changed to min-height for flexibility */
    position: relative;
    margin: 1rem 0; /* Reduced from 2rem to 1rem */
}

/* Three.js Canvas */
#app-icons-canvas {
    width: 100%;
    height: 100%;
    cursor: pointer;
    outline: none;
}

/* Loading State */
.icons-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 106px; /* Match container height */
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive heights */
@media (min-width: 768px) {
    #app-icons-container {
        min-height: 133px; /* 15% less than 156px */
    }
}

@media (min-width: 1024px) {
    #app-icons-container {
        min-height: 160px; /* 15% less than 188px */
    }
}

/* Tooltip for app names */
.app-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.app-tooltip.visible {
    opacity: 1;
}