        :not(:defined) > * {
            display: none;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;

        }

        .model-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border-radius: 8px;
            overflow: hidden;
            background: white;
            display: flex;
            flex-direction: column;
        }

        model-viewer {
            /*background-color: #999;
background: #bfbfbf;*/
background: linear-gradient(90deg,rgba(191, 191, 191, 1) 0%, rgba(163, 168, 164, 1) 50%, rgba(255, 255, 255, 1) 100%);
            width: 100%;
            height: 70vh;
            min-height: 500px;
            --progress-bar-color: #4285f4;
            --progress-bar-height: 6px;
            flex-grow: 1;
        }

        /* Stil za AR dugme */
        #ar-button {
           background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjNDI4NUY0Ij48cGF0aCBkPSJNMTkgMTNINWEyIDIgMCAwIDAgLTIgMnY0YTIgMiAwIDAgMCAyIDJoMTRhMiAyIDAgMCAwIDIgMnYtNGEyIDIgMCAwIDAgLTIgLTJ6TTUgMTFoMTRhMiAyIDAgMCAwIDIgMnYtNGEyIDIgMCAwIDAgLTIgLTJINWEyIDIgMCAwIDAgLTIgMnY0YTIgMiAwIDAgMCAyIDJ6TTcgOGg0djJIN3YtMnoiLz48L3N2Zz4=);

            background-repeat: no-repeat;
            background-size: 20px 20px;
            background-position: 12px 50%;
            background-color: #fff;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            top: 16px;
            padding: 0px 16px 0px 40px;
            font-family: Roboto Regular, Helvetica Neue, sans-serif;
            font-size: 14px;
            color: #4285f4;
            height: 36px;
            line-height: 36px;
            border-radius: 18px;
            border: 1px solid #DADCE0;
            cursor: pointer;
            z-index: 10;


        }

        /* Kontrolni panel ispod modela */
        .controls-container {
            width: 100%;
            background: white;
            padding: 15px 0;
            border-top: 1px solid #eee;
        }

        .slider {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
            overflow: hidden;
        }

        .slides {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            padding: 0 20px;
            gap: 25px;
            justify-content: center;
        }

        .slide {
            scroll-snap-align: center;
            flex: 0 0 auto;
            width: 80px;
            height: 80px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            background-color: #fff;
            border-radius: 8px;
            border: 2px solid #ddd;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: all 0.2s ease;
        }

        .slide:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

        .slide.selected {
            border-color: #4285f4;
            transform: scale(1.1);
            box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
        }

        /* Responsive stilovi */
        @media (max-width: 768px) {
            model-viewer {
                height: 60vh;
                min-height: 400px;
            }
            .slide {
                width: 70px;
                height: 70px;
            }
            .controls-container {
                padding: 10px 0;
            }
        }

        @media (max-width: 480px) {
            model-viewer {
                height: 50vh;
                min-height: 300px;
            }
            .slide {
                width: 60px;
                height: 60px;
            }
            #ar-button {
                top: 10px;
                font-size: 12px;
                padding: 0 10px 0 32px;
                background-size: 16px 16px;
                background-position: 10px 50%;
            }
            .slides {
                gap: 10px;
                padding: 0 10px;
                justify-content: flex-start;
            }
        }
