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

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

.control-group h3 {
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.dimensions-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.dimension-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dimension-input label {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.dimension-input input {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 15px;
    width: 80px;
}

.dimension-input input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.option-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 14px;
}

.toggle-switch.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #374151;
    border-radius: 24px;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: transform 150ms ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.styling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.style-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.style-option label {
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
}

.style-option select {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-size: 15px;
}

.style-option select:focus {
    border-color: #3b82f6;
    outline: none;
}

.style-option select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pro-feature {
    position: relative;
}

.pro-feature:not(.section-hidden)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.pro-badge {
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 2;
}

.file-upload-zone {
    background: #0a0a0a;
    border: 2px dashed #374151;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 150ms ease;
}

.file-upload-zone svg {
    color: #6b7280;
    margin-bottom: 12px;
}

.file-upload-zone p {
    color: #9ca3af;
    font-size: 15px;
    margin: 0;
}

.import-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.editor-section {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.editor-section h3 {
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.editor-hint {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.table-container {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
}

.visual-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 400px;
}

.visual-table td,
.visual-table th {
    border: 1px solid #374151;
    padding: 12px;
    text-align: left;
    background: #141414;
    color: #e5e7eb;
    position: relative;
    min-width: 120px;
}

.visual-table th {
    background: #1a1a1a;
    font-weight: 600;
    color: #ffffff;
}

.visual-table td[contenteditable="true"]:focus,
.visual-table th[contenteditable="true"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: -2px;
    background: rgba(59, 130, 246, 0.1);
}

.visual-table td:empty::before,
.visual-table th:empty::before {
    content: "Click to edit";
    color: #6b7280;
    font-style: italic;
}

.merge-controls {
    position: absolute;
    top: -2px;
    right: -2px;
    display: none;
    background: #3b82f6;
    border-radius: 4px;
    padding: 2px;
    z-index: 10;
}

.visual-table td:hover .merge-controls {
    display: flex;
}

.merge-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 10px;
}

.export-controls {
    margin-bottom: 24px;
}

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

.code-preview {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #374151;
    background: #1a1a1a;
}

.code-header h4 {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.btn-icon:hover {
    background: #374151;
    color: #e5e7eb;
}

.code-container {
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.code-container pre {
    margin: 0;
    padding: 20px;
    background: transparent;
    overflow-x: auto;
}

.code-container code {
    color: #e5e7eb;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.preview-section h4 {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.preview-container {
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 24px;
    min-height: 200px;
    overflow-x: auto;
}

.preview-container table {
    color: #000000;
}

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

.btn-pro {
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.btn-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

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

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

@media (max-width: 768px) {
    .dimensions-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dimension-input {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .dimension-input input {
        width: 60px;
    }
    
    .styling-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .export-buttons,
    .import-buttons {
        flex-direction: column;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .bug-report-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
    
    .table-container {
        padding: 16px;
    }
    
    .visual-table td,
    .visual-table th {
        min-width: 100px;
        padding: 8px;
    }
}