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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0A0A0B;
    color: white;
    overflow: hidden;
    cursor: crosshair;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#canvas {
    display: block;
    cursor: crosshair;
    background: transparent;
}

/* Control Panel */
.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(26, 27, 58, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 20px;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.control-panel.collapsed {
    transform: translateX(250px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.panel-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: #00D4FF;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.toggle-btn {
    background: none;
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00D4FF;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.control-section {
    margin-bottom: 20px;
}

.control-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(132, 204, 22, 0.5);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(132, 204, 22, 0.05);
    animation: pulse 2s infinite;
}

.upload-zone:hover {
    border-color: rgba(132, 204, 22, 0.8);
    background: rgba(132, 204, 22, 0.1);
    transform: translateY(-2px);
}

.upload-zone.drag-over {
    border-color: #84CC16;
    background: rgba(132, 204, 22, 0.2);
    box-shadow: 0 0 20px rgba(132, 204, 22, 0.3);
}

.upload-text span {
    color: #84CC16;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        border-color: rgba(132, 204, 22, 0.5);
    }
    50% {
        border-color: rgba(132, 204, 22, 0.8);
    }
}

/* Sliders */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    appearance: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.control-section span {
    font-size: 12px;
    color: #00D4FF;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Theme Select */
.theme-select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
}

.theme-select:focus {
    border-color: #A855F7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.theme-select option {
    background: #1A1B3A;
    color: white;
}

/* Export Buttons */
.export-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.export-btn:active {
    transform: translateY(0);
}

/* Info Panel */
.info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    z-index: 1000;
}

.info-panel div {
    margin-bottom: 5px;
    color: #00D4FF;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.info-panel div:last-child {
    margin-bottom: 0;
}

/* Instructions */
.instructions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(132, 204, 22, 0.3);
    border-radius: 12px;
    padding: 15px;
    font-size: 12px;
    max-width: 300px;
    z-index: 1000;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .control-panel {
        width: 280px;
        top: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .control-panel.collapsed {
        transform: translateX(230px);
    }
    
    .info-panel {
        bottom: 10px;
        left: 10px;
        padding: 10px;
        font-size: 10px;
    }
    
    .instructions {
        display: none;
    }
    
    body {
        cursor: default;
    }
    
    #canvas {
        cursor: default;
    }
}

/* Glow effects */
.control-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-panel:hover::before {
    opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00D4FF, #A855F7);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #A855F7, #00D4FF);
}