* {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        input,
        textarea {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }

        img,
        a,
        button,
        canvas {
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
            -user-drag: none;
        }

        canvas {
            -webkit-tap-highlight-color: transparent;
        }

        :root {
            --panel-width-desktop: 400px;
            --panel-width-tablet: 250px;
            --panel-width-mobile: 85vw;
            --panel-padding: clamp(10px, 2vw, 25px);
            --base-unit: calc(100vw / 100);
            --panel-width: clamp(280px, 25vw, 400px);
            --panel-height: clamp(400px, 80vh, 800px);
            --button-size: clamp(30px, 3vw, 45px);
            --spacing: clamp(8px, 1vw, 16px);
        }

        /* Base styles for panels */
        .left-panel {
            width: 300px;
            /* Fixed smaller width */
            height: clamp(60vh, 90vh, 95vh);
            padding: var(--panel-padding);
        }

        .right-panel {
            width: calc(100% - 350px);
            /* 300px (left panel) + 50px (gap) = 350px */
            height: auto;
            max-height: clamp(150px, 30vh, 200px);
        }

        @media (min-width: 1600px) {
            .right-panel {
                width: 20% !important;
                /* Reduced width to move panel right */
                margin-left: 70px !important;
                /* Added margin to move panel right */



            }
        }

        /* Extra Large Screen Adjustments */
        @media (min-width: 1920px) {
            .right-panel {
                width: 50% !important;
                margin-left: 80px;
                max-width: 1800px !important;
                left: 15% !important;
            }
        }

        /* Super Wide Screen Adjustments */
        @media (min-width: 2560px) {
            .right-panel {
                width: 50%;
                margin-left: 120px;
                max-width: 2000px;
                left: 15% !important;
            }
        }

        /* Large Screen Adjustments */
        @media (min-width: 1200px) and (max-width: 1919px) {
            .left-panel {
                width: 280px !important;
            }

            .right-panel {
                width: calc(100% - 600px) !important;
                max-width: 1600px !important;
                margin-left: 10% !important;
            }
        }

        /* Medium Screens */
        @media (max-width: 1200px) {
            :root {
                --panel-width: clamp(250px, 30vw, 350px) !important;
            }

            .left-panel {
                width: var(--panel-width-tablet) !important;
            }

            .right-panel {
                width: 40% !important;
                margin-left: 20% !important;
                max-height: 20%;
            }
        }

        /* Smaller Screens */
        @media (max-width: 768px) {
            :root {
                --panel-width: clamp(220px, 85vw, 300px) !important;
            }

            .left-panel {
                width: var(--panel-width-mobile) !important;
                height: 80vh !important;
            }

            .right-panel {
                width: 90% !important;
            }

            .color-options {
                grid-template-columns: repeat(4, 1fr) !important;
            }

            .texture-options {
                grid-template-columns: repeat(2, 1fr) !important;
            }

            .tab {
                min-width: 100px !important;
                padding: 8px 15px !important;
            }
        }

        @media (max-width: 480px) {
            :root {
                --panel-width: 90vw !important;
                --button-size: clamp(25px, 8vw, 35px) !important;
            }

            .left-panel {
                width: 95vw !important;
                height: 60vh !important;
            }

            .right-panel {
                width: 95% !important;
            }

            button {
                width: clamp(35px, 8vw, 45px) !important;
                height: clamp(35px, 8vw, 45px) !important;
            }

            .color-options {
                grid-template-columns: repeat(3, 1fr) !important;
            }

            .texture-options {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        @media (max-height: 500px) and (orientation: landscape) {
            .left-panel {
                height: 90vh;
            }

            .right-panel {
                max-height: 120px;
            }
        }

        @media (hover: none) {

            .tab,
            .color-option,
            .texture-option {
                padding: clamp(12px, 3vw, 20px);
            }

            .close-panel {
                width: 40px;
                height: 40px;
            }
        }

        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {

            .tab,
            .color-option,
            .texture-option {
                padding: calc(var(--spacing) * 1.5);
            }

            .close-panel {
                width: 40px;
                height: 40px;
            }

            .color-option,
            .texture-option {
                min-height: 40px;
                /* Minimum touch target size */
            }
        }

        /* Add or modify these styles */
        body {
            margin: 0 !important;
            padding: 0 !important;
            overflow: hidden !important;
            width: 100vw !important;
            height: 100vh !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
        }

        #model-canvas {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            z-index: 1 !important;
            /* Adjust this value based on your WordPress theme's z-index hierarchy */
            margin: 0 !important;
            padding: 0 !important;
            display: block !important;
        }

        /* If your WordPress theme has a container or wrapper, you might need to override its styles */
        .site-content,
        .content-area,
        .entry-content,
        .post-content {
            margin: 0 !important;
            padding: 0 !important;
            width: 100% !important;
            max-width: none !important;
        }

        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #1d2671, #c33764);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            color: white;
            font-family: 'Poppins', sans-serif !important;
            font-size: 20px;
            text-align: center;
        }

        #loading-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
        }

        #loading-spinner {
            width: 60px;
            height: 60px;
            border: 6px solid rgba(255, 255, 255, 0.3);
            border-top: 6px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

            100% {
                transform: rotate(360deg);
            }
        }

        #loading-progress {
            width: 80%;
            height: 20px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            overflow: hidden;
        }

        #progress-bar {
            width: 0%;
            height: 100%;
            background: #4caf50;
            transition: width 0.3s ease;
        }

        #loading-tip {
            font-family: 'Poppins', sans-serif !important;
            font-size: 16px;
            opacity: 0.8;
            animation: fadeInOut 3s infinite;
        }

        @keyframes fadeInOut {

            0%,
            100% {
                opacity: 0.8;
            }

            50% {
                opacity: 1;
            }
        }

        #error-message {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 10px;
            border-radius: 5px;
            font-size: 14px;
            font-family: 'Poppins' !important;
            visibility: hidden;
            z-index: 9999;
        }

        /* Color Buttons */
        .color-button {
            width: clamp(30px, 8vw, 40px) !important;
            height: clamp(30px, 8vw, 40px);
            border-radius: 50%;
            margin: 0.5vh;
            border: none;
            cursor: pointer;
            transition: box-shadow 0.2s;
        }

        .color-button:hover {
            box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.2) !important;
        }

        .left-panel {
            font-family: 'Poppins' !important;
        }

        /* Texture and Visibility Buttons */
        .texture-button,
        .visibility-button {
            padding: clamp(0.5rem, 1vw, 1rem);
            font-family: 'Poppins' !important;
            font-size: clamp(0.8rem, 2vw, 1rem);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: box-shadow 0.2s, background-color 0.3s !important;
            color: #ffffff !important;
            box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.15);
            width: clamp(50px, 30vw, 140px);
            margin: 0.5vh;
        }

        .texture-button {
            background-color: #5cb85c;
        }

        .texture-button:hover {
            background-color: #4a944a !important;
        }

        .visibility-button {
            background-color: #ff6f61;
        }

        .visibility-button:hover {
            background-color: #e65a4d !important;
        }

        /* Sidebar Styling */
        .sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100%;
            background: linear-gradient(to bottom, #ffffff, #f4f4f9);
            box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
            z-index: 10;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            transition: right 0.4s ease;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: #007bff;
            color: #fff;
            text-align: center;
            border-bottom: 2px solid #0056b3;
        }

        .close-button {
            background: none;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close-button:hover {
            color: #ff5555 !important;
        }

        .tabs {
            padding: 10px;
            display: flex;
            flex-direction: column;
            gap: 5px;
            max-height: 70%;
            overflow-y: auto;
        }

        .tabs button {
            padding: 12px 20px;
            background: #f9f9f9;
            border: none;
            text-align: left !important;
            cursor: pointer;
            font-size: 14px;
            color: #444;
            transition: all 0.3s ease;
            border-radius: 8px;
            display: flex;
            align-items: center !important;
            justify-content: flex-start !important;
            white-space: normal;
            word-wrap: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            height: auto;
            width: 100%;
        }

        .tabs button:hover {
            background: #e6e6e6 !important;
            color: #007bff !important;
        }

        .tabs button.active {
            background: #007bff;
            color: white;
        }

        .customization-panel {
            padding: 15px;
            flex: 1;
            overflow-y: auto;
        }

        .color-swatch {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px solid #ccc;
            transition: transform 0.2s, border-color 0.3s;
            cursor: pointer;
        }

        .color-swatch.active,
        .color-swatch:hover {
            border-color: #007bff !important;
            transform: scale(1.1) !important;
        }

        .texture-preview img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

        .texture-preview.active img {
            border: 3px solid #007bff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .texture-preview img:hover {
            transform: scale(1.1) !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
        }

        /* Arrow Buttons with Glassmorphism */
        .arrow-button {
            position: fixed;
            width: 50px;
            height: 150px;
            background: rgba(51, 51, 51, 0.4);
            border-radius: 10px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            z-index: 1000;
        }

        /* Left arrow button (now positioned on right side) */
        .left-arrow-button {
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 150px;
        }

        /* Right arrow button (now positioned at bottom) */
        .right-arrow-button {
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 150px;
            height: 30px;
        }

        .arrow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 0;
            height: 0;
            border-style: solid;
        }

        /* Modified arrows for new positions */
        .left-arrow {
            border-width: 10px 15px 10px 0;
            /* Adjust border widths for a right-pointing triangle. */
            border-color: transparent #fff transparent transparent;
            /* Change the visible side to the right. */
        }

        .right-arrow {
            border-width: 0 10px 15px 10px;
            border-color: transparent transparent #fff transparent;
        }

        .arrow-button:hover {
            background: rgba(51, 51, 51, 0.6) !important;
        }

        .arrow-button:active {
            background: rgba(51, 51, 51, 0.7);
        }

        /* Side Panels with Glassmorphism */
        .side-panel {
            position: fixed;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            color: #333;
            padding: 25px;
            overflow-x: hidden;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 0 16px rgba(255, 255, 255, 0.1);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
            border: 1px solid rgba(255, 255, 255, 0.25);
            background-image: linear-gradient(125deg,
                    rgba(255, 255, 255, 0.3) 0%,
                    rgba(255, 255, 255, 0.3) 100%);
        }

        /* Left panel (right side) */
        .left-panel {
            width: var(--panel-width);
            height: var(--panel-height);
            max-height: 90vh !important;
            right: 0 !important;
            top: 50%;
            transform: translateX(100%) translateY(-50%) !important;
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow-x: hidden;
            border-radius: 25px;
            padding: calc(var(--spacing) * 2);
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 0 16px rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.25);
            background-image: linear-gradient(125deg,
                    rgba(255, 255, 255, 0.3) 0%,
                    rgba(255, 255, 255, 0.2) 100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

        }

        /* Right panel (bottom) */
        .right-panel {
            width: clamp(300px, 60vw, 800px);
            height: auto;
            max-height: clamp(150px, 30vh, 250px);
            bottom: 0;
            left: 0;
            transform: translateY(100%) !important;
            margin: 0 10%;
            border-radius: 20px 20px 20px 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 0 16px rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.25);
            background-image: linear-gradient(125deg,
                    rgba(255, 255, 255, 0.3) 0%,
                    rgba(255, 255, 255, 0.2) 100%);
        }

        .right-panel.panel-visible {
            position: fixed;
            bottom: 10px;
            right: 5vw;
            transform: translate(0) !important;
        }

        .left-panel.panel-visible {
            position: fixed;
            right: 1% !important;
            top: 50%;
            transform: translateX(0) translateY(-50%) !important;
        }

        .left-panel:not(.panel-visible) {
            transform: translateX(100%) translateY(-50%);
            /* Hidden position - to the right */
        }

        .side-panel h3 {
            font-family: 'Poppins', sans-serif !important;
            font-size: 1.2rem;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(44, 62, 80, 0.1);
        }

        .right-panel.close-button {
            top: 15px !important;
            right: 5px !important;
        }

        .right-panel h3 {
            margin: 0;
            border-radius: 5px;
            padding: 15px 40px 15px 15px;
            background: rgba(255, 255, 255, 0.1);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            position: relative;
        }

        /* Tabs Styling */
        .tabs-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 10px;
            max-height: 120px;
            /* Set a fixed height for 2 rows */
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: var(--panel-width-tablet) !important;
            -ms-overflow-style: none;
        }

        /* Modified tab styling for bottom panel */
        .right-panel .tabs-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .tab {
            flex: 0 0 auto;
            min-width: 120px;
            max-width: 200px;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif !important;
            font-size: 0.9rem;
            color: #2c3e50;
            border: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 5px;
            display: flex;
            justify-content: center !important;
            align-items: center !important;
            text-align: center !important;
        }

        /* Modified tab styling for bottom panel */
        .right-panel .tab {
            flex: 0 0 auto;
            margin-bottom: 0;
        }

        .right-panel .close-panel:hover {
            background: rgba(255, 255, 255, 0.4) !important;
            transform: rotate(90deg) !important;
        }

        .tab:hover {
            transform: translateY(-2px) !important;
            background: rgba(255, 255, 255, 0.3) !important;
        }

        @media (max-width: 768px) {
            .right-panel {
                width: 80%;
                margin: 0 10%;
            }

            .tab {
                min-width: 100px;
                padding: 10px 15px;
            }
        }

        @media (max-width: 480px) {
            .right-panel {
                width: 90%;
                margin: 0 5%;
            }

            .tab {
                min-width: 90px;
                padding: 8px 12px;
                font-size: 0.8rem;
            }
        }

        .tab.active {
            background: #007bff !important;
            color: white;
            box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
        }

        .close-panel {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #2c3e50;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-panel:hover {
            background: rgba(255, 255, 255, 0.4) !important;
            transform: rotate(90deg) !important;
        }

        /* Modified close button for bottom panel */
        .right-panel .close-panel {
            position: absolute;
            top: 35px;
            right: 30px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: #2c3e50;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .part-info {
            margin-top: 10px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
        }

        /* Scrollbar styling for panels */
        .side-panel::-webkit-scrollbar {
            width: 6px;
        }

        .side-panel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .side-panel::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.3);
            border-radius: 3px;
        }

        /* Make bottom panel scrollable horizontally */
        .right-panel {
            overflow-x: auto;
            overflow-y: hidden;
        }

        /* Add these new styles for the color and texture options */
        .properties-container {
            height: auto;
            overflow-x: hidden;
            width: 100%;
        }

        .section-title {
            color: #333;
            margin: 15px 0 10px;
            padding-bottom: 5px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
            width: 100%;
        }

        .mesh-name {
            color: #2c3e50;
            min-height: 40px;
            justify-content: center;
            align-items: center;
            display: flex;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            text-align: center;
            font-weight: 500;
            width: 100%;
        }

        .color-option,
        .texture-option {
            padding: 15px;
            border-radius: 5px;
            cursor: pointer;
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .color-option:hover,
        .texture-option:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .texture-options {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            max-height: 300px;
            overflow-y: auto;
            overflow-x: hidden;
            width: 100%;
        }

        .texture-option:hover {
            transform: scale(1.05);
        }

        .texture-preview {
            width: 100%;
            height: 80px;
            border-radius: 8px;
            background-size: cover;
            background-position: center;
            border: 2px solid rgba(255, 255, 255, 0.5);
        }

        .texture-name {
            font-size: 0.8em;
            color: #666;
            text-align: center;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .visibility-toggle {
            width: 99%;
            padding: 12px 20px;
            background-color: #f0f0f0;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            margin-top: auto;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .visibility-toggle:hover {
            background-color: #e0e0e0;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .visibility-toggle:active {
            transform: translateY(1px);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        /* Update the color-options container */
        .color-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 10px;
            margin-bottom: 20px;
            width: 100%;
            max-height: calc(3 * (40px + 20px));
            /* Height for 3 rows (color option height + gap) */
            overflow-y: auto;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
        }

        /* Add scrollbar styling */
        .color-options::-webkit-scrollbar {
            width: 6px;
        }

        .color-options::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .color-options::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 3px;
        }

        .color-options::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        /* Update the color-option-container class */
        .color-option-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px !important;
            padding: 2px !important;
            min-width: 0;
            /* Allow container to shrink */
        }

        /* Update the color-option class */
        .color-option {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
            transition: transform 0.2s, border-color 0.2s;
            flex-shrink: 0;
            /* Prevent color circle from shrinking */
        }

        /* Update the color name styling */
        .color-name {
            font-size: 0.75em;
            color: #333;
            text-align: center;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 2px;
            margin-top: 4px;
        }

        /* Media queries for different screen sizes */
        @media (max-width: 768px) {
            .color-options {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 480px) {
            .color-options {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .color-name {
            font-size: 0.75em;
            color: #333;
            text-align: center;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 0 2px;
        }

        .color-option:hover {
            transform: scale(1.1);
        }

        .color-option.active::after {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
        }

        .color-option {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #fff;
        }

        .color-option:hover {
            border-color: #000;
        }

        .tab {
            flex: 0 0 auto;
            min-width: 120px;
            max-width: 200px;
            padding: 12px 20px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif !important;
            font-size: 0.9rem;
            color: #2c3e50;
            border: 1px solid rgba(255, 255, 255, 0.1);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 5px;
        }

        .tabs-container::-webkit-scrollbar {
            width: 6px;
        }

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

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

        .tabs-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .tab.active {
            background: #007bff;
            color: white;
        }

        .panel-visible {
            transform: translateX(0) !important;
        }

        .side-panel::-webkit-scrollbar {
            width: 6px;
        }

        .side-panel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .side-panel::-webkit-scrollbar-thumb {
            background: rgba(44, 62, 80, 0.2);
            border-radius: 3px;
        }

        .side-panel::-webkit-scrollbar-thumb:hover {
            background: rgba(44, 62, 80, 0.3);
        }

        .color-options::-webkit-scrollbar,
        .texture-options::-webkit-scrollbar {
            width: 6px;
        }

        .panel-tab:hover {
            background: #007bff !important;

        }

        button {

            font-family: 'Poppins' !important;
        }

        .color-options::-webkit-scrollbar-track,
        .texture-options::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 3px;
        }

        .color-options::-webkit-scrollbar-thumb,
        .texture-options::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 3px;
        }

        .color-options::-webkit-scrollbar-thumb:hover,
        .texture-options::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        #mesh-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 10px;
            max-height: calc(3 * (32px + 8px));
            overflow-y: auto;
            scrollbar-width: thin;
            -ms-overflow-style: none;
            scrollbar-color: rgba(155, 155, 155, 0.7) transparent;
        }

        /* Webkit scrollbar styles (Chrome, Safari, newer Edge) */
        #mesh-tabs::-webkit-scrollbar {
            width: 6px;
        }

        #mesh-tabs::-webkit-scrollbar-track {
            background: transparent;
        }

        #mesh-tabs::-webkit-scrollbar-thumb {
            background-color: rgba(155, 155, 155, 0.7);
            border-radius: 3px;
            border: transparent;
        }

        .tabs-header {
            display: flex;
            gap: 10px;
            padding: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .panel-tab {
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 4px;
            color: #2c3e50 !important;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .panel-tab.active {
            background: rgba(255, 255, 255, 0.3);
        }

        .panel-tab.active {
            background: #007bff !important;
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        }

        .tab-content {
            padding: 10px;
        }

        #rightPanelTabs {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 8px !important;
            padding: 10px !important;
            max-height: calc(2 * (32px + 16px)) !important;
            /* Height for 2 rows initially */
            transition: max-height 0.3s ease !important;
            width: 100% !important;
        }

        #rightPanelTabs.scrollable {
            max-height: calc(3 * (32px + 16px)) !important;
            /* Height for 3 rows when scrolling */
            overflow-y: auto !important;
            overflow-x: hidden !important;
            scrollbar-width: thin !important;
            scrollbar-color: rgba(0, 0, 0, 0.3) transparent !important;
        }

        /* Scrollbar styling */
        #rightPanelTabs::-webkit-scrollbar {
            width: 6px !important;
        }

        #rightPanelTabs::-webkit-scrollbar-track {
            background: transparent !important;
        }

        #rightPanelTabs::-webkit-scrollbar-thumb {
            background-color: rgba(0, 0, 0, 0.3) !important;
            border-radius: 3px !important;
        }

        #rightPanelTabs::-webkit-scrollbar-thumb:hover {
            background-color: rgba(0, 0, 0, 0.5) !important;
        }