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

.tool-interface {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

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

.section-controls,
.preview-controls,
.output-controls {
    display: flex;
    gap: 12px;
}

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

.control-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.control-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group.full-width {
    flex: 1 1 100%;
}

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

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

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.value-display {
    font-size: 13px;
    color: #9ca3af;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    text-align: center;
    min-width: 50px;
}

.select-input {
    background: #141414;
    border: 1px solid #374151;
    color: #e5e7eb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

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

.pro-option {
    color: #fbbf24 !important;
    background: #451a03;
}

.pro-feature-section {
    position: relative;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    background: rgba(251, 191, 36, 0.05);
    margin-top: 60px;
}

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

.btn-pro-feature {
    background: #374151;
    color: #9ca3af;
    border: 1px solid #4b5563;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
}

.btn-pro-feature:hover {
    background: #4b5563;
    color: #e5e7eb;
}

.btn-pro-feature:before {
    content: "🔒";
    margin-right: 6px;
    font-size: 12px;
}

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

.grid-preview-container {
    background: #0a0a0a;
    border: 2px solid #374151;
    border-radius: 8px;
    padding: 24px;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
    height: 250px;
    width: 100%;
    position: relative;
}

.grid-preview.show-grid-lines {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

.grid-item {
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid #3b82f6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
}

.grid-item:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
}

.grid-item.selected {
    background: rgba(59, 130, 246, 0.4);
    border-color: #60a5fa;
}

.grid-item .item-controls {
    position: absolute;
    top: -30px;
    right: 0;
    display: none;
    gap: 4px;
}

.grid-item:hover .item-controls,
.grid-item.selected .item-controls {
    display: flex;
}

.item-control-btn {
    background: #374151;
    border: none;
    color: #e5e7eb;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-control-btn:hover {
    background: #4b5563;
}

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

.code-output {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-output pre {
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.code-output code {
    color: #e5e7eb;
}

.code-output .property {
    color: #60a5fa;
}

.code-output .value {
    color: #34d399;
}

.code-output .selector {
    color: #fbbf24;
}

.btn-secondary.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.pro-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pro-cta-text {
    font-size: 15px;
    font-weight: 500;
}

.btn-pro {
    background: #0a0a0a;
    color: #fbbf24;
    border: 2px solid #0a0a0a;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
}

.btn-pro:hover {
    background: #141414;
    transform: translateY(-1px);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #e5e7eb;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: #374151;
    color: #e5e7eb;
}

.modal-body {
    padding: 24px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.template-card {
    background: #0a0a0a;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 150ms ease;
    opacity: 0.7;
}

.template-card:hover {
    border-color: #fbbf24;
    opacity: 1;
}

.template-preview {
    height: 60px;
    background: #374151;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}

.template-card span {
    font-size: 13px;
    color: #d1d5db;
}

@media (max-width: 768px) {
    .control-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-controls,
    .preview-controls,
    .output-controls {
        width: 100%;
        justify-content: flex-start;
    }
    
    .grid-preview {
        height: 200px;
    }
    
    .pro-cta-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .bug-report-btn {
        bottom: 20px;
        left: 20px;
        right: auto;
    }
}