/* Tool-specific styles only - base styles are in tool-layout.css */

.tool-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.input-section h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    color: #e5e7eb;
    margin: 0;
}

.shape-palette {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.shape-category {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.shape-category h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #d1d5db;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shape-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 12px;
    max-width: 320px;
}

.shape-btn {
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: 14px;
    font-weight: 500;
}

.shape-btn:hover:not(.pro-locked) {
    background: #374151;
    border-color: #3b82f6;
}

.shape-btn:active:not(.pro-locked) {
    background: #1e3a8a;
    border-color: #3b82f6;
}

.shape-btn.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.pro-feature {
    position: relative;
}

.pro-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.pro-locked:hover {
    opacity: 0.7;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.controls-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.control-group h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #d1d5db;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-item label {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    white-space: nowrap;
    min-width: fit-content;
}

input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #141414;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

input[type="range"] {
    width: 100px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    transition: all 150ms ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.value-display {
    font-size: 13px;
    color: #9ca3af;
    min-width: 35px;
    text-align: right;
}

.toggle-btn {
    width: 32px;
    height: 24px;
    background: #374151;
    border: none;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.toggle-btn.active {
    background: #3b82f6;
}

.toggle-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 150ms ease;
}

.toggle-btn.active .toggle-indicator {
    transform: translateX(8px);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
}

input[type="checkbox"]:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.btn-secondary {
    background: #1a1a1a;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.btn-primary {
    background: #3b82f6;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pro {
    color: #0a0a0a;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.btn-pro:hover {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.3);
}

.output-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.output-header h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 36px;
    color: #e5e7eb;
    margin: 0;
}

.canvas-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.canvas-size {
    font-size: 13px;
    color: #9ca3af;
    font-family: 'SF Mono', Monaco, monospace;
}

.canvas-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    border: 2px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

#icon-canvas {
    display: block;
    cursor: crosshair;
}

.selection-indicator {
    position: absolute;
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    pointer-events: none;
    border-radius: 4px;
}

.draggable-shape {
    cursor: move;
}

.draggable-shape:hover {
    opacity: 0.8;
}

.draggable-shape.selected {
    filter: drop-shadow(0 0 4px #3b82f6);
}

.export-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
}

.export-section h3 {
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    color: #d1d5db;
    margin: 0 0 16px 0;
}

.export-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.pro-export-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pro-only:not(.section-hidden) {
    display: block;
}

@media (max-width: 768px) {
    .tool-container {
        padding: 0 16px;
        gap: 32px;
    }
    
    .control-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .shape-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .export-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pro-export-options {
        justify-content: space-between;
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .canvas-container {
        width: 100%;
        max-width: 280px;
    }
    
    #icon-canvas {
        width: 100%;
        height: auto;
    }
    
    .bug-report-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}