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

.tool-main {
    margin-top: 60px;
}

.tool-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.tool-btn:hover {
    background: #1a1a1a;
    border-color: #4b5563;
}

.tool-btn.active {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #ffffff;
}

.tool-btn svg {
    flex-shrink: 0;
}

.canvas-wrapper {
    position: relative;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

#drawing-canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
}

.canvas-coords {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 12px;
    font-family: 'SF Mono', Monaco, monospace;
    color: #9ca3af;
}

.canvas-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 8px;
}

.setting-item input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 2px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    cursor: pointer;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #d1d5db;
    cursor: pointer;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-label label {
    margin-bottom: 0;
}

.slider-value {
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
}

.slider {
    width: 100%;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.preview-area {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 16px;
    min-height: 200px;
}

#svg-preview {
    display: block;
    width: 100%;
    height: auto;
    background: repeating-conic-gradient(#1a1a1a 0% 25%, #0f0f0f 0% 50%) 50% / 20px 20px;
    border-radius: 4px;
}

.code-output {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 12px;
}

.code-output pre {
    margin: 0;
}

.code-output code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    color: #10b981;
    white-space: pre-wrap;
    word-break: break-all;
}

.export-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.button-primary {
    padding: 12px 24px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease;
}

.button-secondary {
    padding: 12px 24px;
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.button-download {
    padding: 10px 20px;
    background: #059669;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms ease;
}

@media (max-width: 768px) {
    .tool-buttons {
        flex-direction: column;
    }

    .tool-btn {
        justify-content: center;
    }

    .canvas-actions {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary,
    .button-download {
        width: 100%;
    }

    .export-actions {
        flex-direction: column;
    }

    .fill-control {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}