
        :root {
            --primary-color: #6366f1;
            --secondary-color: #f9fafb;
        }
        
        body {
            cursor: default;
            color: black;
        }
        
        .crosshair-cursor {
            cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24"><path fill="black" d="M12 2L12 10L12 2M12 22L12 14L12 22M2 12L10 12L2 12M22 12L14 12L22 12"/></svg>') 12 12, crosshair;
        }
        
        canvas {
            background-color: white;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            touch-action: none;
            image-rendering: -moz-crisp-edges;
            image-rendering: -webkit-crisp-edges;
            image-rendering: pixelated;
            image-rendering: crisp-edges;
            max-width: 100%;
            height: auto;
        }
        
        .transparency-bg {
            background-image: 
                linear-gradient(45deg, #e5e5e5 25%, transparent 25%),
                linear-gradient(-45deg, #e5e5e5 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #e5e5e5 75%),
                linear-gradient(-45deg, transparent 75%, #e5e5e5 75%);
            background-size: 20px 20px;
            background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
        }
        
        .tool-button.active {
            background-color: var(--primary-color) !important;
            color: white !important;
        }
        
        .selection-box {
            position: absolute;
            border: 2px dashed #0066ff;
            background-color: rgba(0, 102, 255, 0.1);
            pointer-events: none;
            display: none;
        }
        
        .selection-handle {
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: #0066ff;
            border: 1px solid white;
            border-radius: 50%;
            pointer-events: auto;
        }
        
        .layer-item.active {
            background-color: #e0e7ff;
            border-left: 3px solid #6366f1;
        }
        
        .layer-item.locked {
            background-color: #f3f4f6;
        }
        
        .text-element {
            position: absolute;
            cursor: move;
            user-select: none;
            outline: 1px dashed #0066ff;
            background-color: rgba(0, 102, 255, 0.1);
            padding: 2px;
            min-width: 20px;
            min-height: 20px;
            font-size: 12px;
        }
        
        .color-preview {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            border: 1px solid #ccc;
        }
        
        #canvas-container {
            transform-origin: 0 0;
            margin: 0 auto;
            position: relative;
        }
        
        .resize-handle {
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: #3b82f6;
            border: 1px solid white;
            z-index: 10;
        }
        
        .resize-nw { top: -4px; left: -4px; cursor: nwse-resize; }
        .resize-ne { top: -4px; right: -4px; cursor: nesw-resize; }
        .resize-sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
        .resize-se { bottom: -4px; right: -4px; cursor: nwse-resize; }
        
        .tool-group {
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .tool-group-title {
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #4b5563;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .tool-group-content {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
        }
        
        .tool-group.collapsed .tool-group-content {
            display: none;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 100;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            background-color: white;
            padding: 1rem;
            border-radius: 0.5rem;
            width: 90%;
            max-width: 400px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .context-menu {
            position: fixed;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            border-radius: 0.25rem;
            z-index: 50;
            display: none;
        }
        
        .context-menu-item {
            padding: 0.5rem 1rem;
            cursor: pointer;
        }
        
        .context-menu-item:hover {
            background-color: #f3f4f6;
        }
        
        /* Efecto de marching ants para la selección */
        @keyframes marching-ants {
            from { background-position: 0 0; }
            to { background-position: 8px 0; }
        }
        
        .fa-curve::before {
            content: "⌒";
            font-weight: bold;
        }
        
        /* Color classes for buttons */
        .bg-blue-100 { background-color: #dbeafe; }
        .hover\:bg-blue-200:hover { background-color: #bfdbfe; }
        .text-blue-800 { color: #1e40af; }
        
        .bg-purple-100 { background-color: #f3e8ff; }
        .hover\:bg-purple-200:hover { background-color: #e9d5ff; }
        .text-purple-800 { color: #6b21a8; }
        
        .bg-green-100 { background-color: #dcfce7; }
        .hover\:bg-green-200:hover { background-color: #bbf7d0; }
        .text-green-800 { color: #166534; }
        
        .bg-red-100 { background-color: #fee2e2; }
        .hover\:bg-red-200:hover { background-color: #fecaca; }
        .text-red-800 { color: #991b1b; }
        
        .bg-gray-100 { background-color: #f3f4f6; }
        .hover\:bg-gray-200:hover { background-color: #e5e7eb; }
        .text-gray-800 { color: #1f2937; }
        
        /* Tool button styles */
        .tool-btn {
            transition: all 0.2s;
            border-radius: 0.5rem;
            padding: 0.25rem;
            font-size: 0.7rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .tool-btn i {
            font-size: 0.8rem;
            margin-bottom: 0.1rem;
        }
        
        .tool-btn:hover {
            background-color: #e5e7eb;
        }
        
        .tool-btn.active {
            background-color: #6366f1 !important;
            color: white !important;
        }
        
        /* Header button styles */
        .header-btn {
            padding: 0.5rem;
            border-radius: 0.5rem;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        /* Responsive styles */
        @media (max-width: 1024px) {
            .flex-col.lg\:flex-row {
                flex-direction: column;
            }
            
            .w-full.lg\:w-64 {
                width: 100%;
                margin-bottom: 1rem;
            }
            
            #main-canvas {
                width: 100% !important;
                height: auto !important;
            }
            
            #canvas-container {
                width: 100% !important;
                height: auto !important;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 0.5rem;
            }
            
            .tool-group-content {
                grid-template-columns: repeat(4, 1fr);
            }
            
            .header-title {
                font-size: 1.2rem;
                margin-bottom: 0.5rem;
            }
            
            .header-buttons {
                flex-wrap: wrap;
                gap: 0.5rem;
            }
            
            .header-buttons button {
                padding: 0.5rem;
                font-size: 0.8rem;
            }
            
            .tool-btn {
                padding: 0.25rem;
                font-size: 0.7rem;
            }
            
            .tool-btn i {
                font-size: 0.8rem;
            }
            
            .layer-item {
                padding: 0.5rem;
                font-size: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .tool-group-content {
                grid-template-columns: repeat(3, 1fr);
            }
            
            .modal-content {
                width: 95%;
                padding: 0.75rem;
            }
            
            .header-buttons button {
                flex: 1 0 calc(50% - 0.5rem);
                justify-content: center;
            }
            
            .tool-btn {
                font-size: 0.6rem;
            }
            
            .tool-btn i {
                font-size: 0.7rem;
            }
        }
        
        /* Smallest devices */
        @media (max-width: 360px) {
            .tool-group-content {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .header-buttons button {
                flex: 1 0 100%;
            }
            
            .tool-btn {
                font-size: 0.5rem;
                padding: 0.1rem;
            }
        }
