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

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

.section-hint {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.template-category {
    margin-bottom: 24px;
}

.template-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.template-card {
    position: relative;
    cursor: pointer;
}

.template-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.template-card .card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.template-card:hover .card-inner {
    border-color: #4b5563;
    background: #1a1a1a;
}

.template-card input:checked + .card-inner {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.template-card input:focus + .card-inner {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.checkbox-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid #374151;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.template-card input:checked + .card-inner .checkbox-indicator {
    background: #3b82f6;
    border-color: #3b82f6;
}

.template-card input:checked + .card-inner .checkbox-indicator::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.card-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

#custom-patterns {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.empty-state-text {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

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

.output-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.template-count {
    font-size: 13px;
    color: #9ca3af;
}

.code-output-wrapper {
    background: #141414;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.code-output {
    padding: 20px;
    margin: 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.pattern-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px;
    margin-top: 12px;
    background: #141414;
    border-radius: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.summary-item strong {
    color: #e5e7eb;
    font-weight: 600;
}

.summary-divider {
    color: #374151;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.action-buttons .button-primary,
.action-buttons .button-secondary {
    flex: 1;
}

@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .button-primary,
    .action-buttons .button-secondary {
        width: 100%;
    }
    
    .pattern-summary {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .summary-divider {
        display: none;
    }
}

.button-primary.copied {
    background: #059669;
}

.button-primary.copied:hover {
    background: #047857;
}