* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #00b1a9;
            --primary-dark: #008f88;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --bg-light: #f8f9fa;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-light);
            overflow-x: hidden;
        }

        .header {
            background: white;
            padding: 20px 40px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo img {
            height: 40px;
            width: auto;
            transition: transform 0.3s ease;
        }

        .logo:hover img {
            transform: scale(1.05);
        }

        .logo::before {
            content: '← ';
            font-size: 24px;
            color: var(--primary);
            margin-right: 8px;
        }

        .header-actions {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 10px 25px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 14px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary);
        }

        .btn-secondary:hover {
            background: var(--primary);
            color: white;
        }

        .container {
            display: grid;
            grid-template-columns: 320px 1fr 380px;
            height: calc(100vh - 80px);
            gap: 0;
        }

        .sidebar {
            background: white;
            overflow-y: auto;
            padding: 30px;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
        }

        .sidebar-right {
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
        }

        .section-title {
            font-size: 18px;
            margin-bottom: 20px;
            color: var(--text-dark);
            border-bottom: 2px solid var(--primary);
            padding-bottom: 10px;
        }

        .control-group {
            margin-bottom: 25px;
        }

        .control-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-dark);
            font-size: 13px;
        }

        .control-group input[type="number"],
        .control-group select {
            width: 100%;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .control-group input[type="number"]:focus,
        .control-group select:focus {
            outline: none;
            border-color: var(--primary);
        }

        .control-group input[type="range"] {
            width: 100%;
            margin-top: 10px;
        }

        .value-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 5px;
            font-size: 12px;
            color: var(--text-light);
        }

        .color-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .color-option {
            width: 100%;
            height: 50px;
            border-radius: 8px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s;
        }

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

        .color-option.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
        }

        .wood-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 10px;
        }

        .wood-option {
            height: 80px;
            border-radius: 8px;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s;
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }

        .wood-option::after {
            content: attr(data-name);
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 4px;
            font-size: 11px;
            text-align: center;
        }

        .wood-option:hover {
            transform: scale(1.02);
        }

        .wood-option.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary);
        }

        .mirror-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mirror-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: var(--bg-light);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .mirror-option:hover {
            background: #e8f5f4;
        }

        .mirror-checkbox {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--primary);
        }

        .mirror-label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            flex: 1;
        }

        .mirror-icon {
            font-size: 20px;
        }

        .toggle-switch {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
        }

        .switch {
            position: relative;
            width: 50px;
            height: 26px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 26px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--primary);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        .btn-add {
            width: 100%;
            padding: 12px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            margin-top: 10px;
            transition: all 0.3s;
            font-size: 13px;
        }

        .btn-add:hover {
            background: var(--primary-dark);
        }

        .btn-small {
            padding: 5px 12px;
            font-size: 11px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            background: #e74c3c;
            color: white;
            transition: all 0.3s;
        }

        .btn-small:hover {
            background: #c0392b;
        }

        #canvas-container {
            position: relative;
            background: linear-gradient(to bottom, #e8f5f4 0%, #ffffff 100%);
        }

        #info-overlay {
            position: absolute;
            top: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            max-width: 280px;
        }

        #info-overlay h3 {
            margin-bottom: 10px;
            color: var(--primary);
            font-size: 16px;
        }

        .info-item {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid #eee;
            font-size: 13px;
        }

        .section-editor {
            background: var(--bg-light);
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }

        .section-tabs {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .section-tab {
            padding: 8px 15px;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.3s;
        }

        .section-tab.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .section-2d-view {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            height: 400px;
            position: relative;
            overflow: hidden;
            margin-bottom: 15px;
        }

        .element-2d {
            position: absolute;
            background: var(--primary);
            opacity: 0.7;
            cursor: move;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
            border: 2px solid var(--primary-dark);
            border-radius: 4px;
            user-select: none;
        }

        .element-2d:hover {
            opacity: 1;
            z-index: 10;
        }

        .element-2d.selected {
            border-color: #e74c3c;
            border-width: 3px;
            opacity: 1;
        }

        .element-delete {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 20px;
            height: 20px;
            background: #e74c3c;
            color: white;
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            line-height: 1;
        }

        .element-2d:hover .element-delete,
        .element-2d.selected .element-delete {
            display: flex;
        }

        .price-summary {
            background: var(--primary);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }

        .price-summary h3 {
            margin-bottom: 15px;
            font-size: 16px;
        }

        .price-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-size: 13px;
        }

        .total-price {
            font-size: 24px;
            font-weight: bold;
            text-align: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid rgba(255, 255, 255, 0.3);
        }

        .controls-help {
            background: #fff3cd;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
            font-size: 12px;
            color: #856404;
        }

        .controls-help strong {
            display: block;
            margin-bottom: 8px;
        }

        @media (max-width: 1200px) {
            .container {
                grid-template-columns: 1fr;
                height: auto;
            }

            .sidebar {
                height: auto;
            }

            #canvas-container {
                height: 500px;
                order: -1;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }