/**
 * NEO 3D Viewer - Style CSS
 */

.neo-3d-viewer-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.neo-3d-viewer-container > div {
    position: relative;
    width: 100% !important;
    height: 100% !important;
}

/* Loader animation podczas ładowania */
.neo-3d-viewer-container.loading::before {
    content: "Ładowanie makiety 3D...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #666;
    z-index: 10;
}

.neo-3d-viewer-container.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsywność */
@media (max-width: 768px) {
    .neo-3d-viewer-container {
        min-height: 300px;
        height: 70vh !important;
    }
}

@media (max-width: 480px) {
    .neo-3d-viewer-container {
        min-height: 250px;
        height: 60vh !important;
    }
}

/* Przycisk fullscreen */
.neo-3d-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.neo-3d-fullscreen-btn:hover {
    background: rgba(255,255,255,1);
}

/* Overlay mode */
.neo-3d-viewer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: white;
}

.neo-3d-viewer-overlay .neo-3d-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100000;
    font-size: 16px;
}

.neo-3d-viewer-overlay .neo-3d-close-btn:hover {
    background: rgba(0,0,0,0.9);
}