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

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

.input-group {
    margin-bottom: 20px;
}

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

.code-input {
    width: 100%;
    min-height: 200px;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 16px;
    color: #e5e7eb;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

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

.code-input::placeholder {
    color: #6b7280;
}

.text-input {
    width: 100%;
    background: #141414;
    border: 1px solid #374151;
    border-radius: 6px;
    padding: 12px 16px;
    color: #e5e7eb;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 15px;
    box-sizing: border-box;
}

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

.text-input::placeholder {
    color: #6b7280;
}

.examples-section {
    margin-bottom: 24px;
}

.examples-header {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.example-btn {
    background: #1a1a1a;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 6px 12px;
    color: #d1d5db;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 150ms ease;
}

.example-btn:hover {
    background: #374151;
    border-color: #4b5563;
    color: #ffffff;
}

.example-btn:active {
    background: #4b5563;
}

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

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

.output-section {
    margin-top: 32px;
}

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

.result-title {
    font-size: 18px;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
}

.match-count {
    font-size: 14px;
    color: #9ca3af;
    background: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
}

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

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

.json-key {
    color: #93c5fd;
}

.json-string {
    color: #86efac;
}

.json-number {
    color: #fbbf24;
}

.json-boolean {
    color: #f472b6;
}

.json-null {
    color: #9ca3af;
}

.json-bracket {
    color: #e5e7eb;
}

.error-display {
    background: #7f1d1d;
    border: 1px solid #dc2626;
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.error-title {
    font-size: 14px;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 8px;
}

.error-message {
    font-size: 14px;
    color: #fecaca;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.stats-bar {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid #374151;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 15px;
    font-weight: 500;
    color: #e5e7eb;
}

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

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

@media (max-width: 768px) {
    .examples-list {
        gap: 6px;
    }

    .example-btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .stats-bar {
        gap: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

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