/* SQL Formatter - Stylesheet */

/* Container override for wider layout */
.container {
    max-width: 900px;
}

/* Input section */
.input-section {
    margin-bottom: 1rem;
}

.input-section label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    resize: vertical;
    transition: border-color 0.15s ease;
}

.input-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.input-section textarea::placeholder {
    color: var(--text-muted);
}

/* Options section */
.options-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.option-group select {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.option-group select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Error message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #ef4444;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Output section */
.output-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.output-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.output {
    margin: 0;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
    background: transparent !important;
}

.output code {
    font-family: 'JetBrains Mono', monospace;
    background: transparent !important;
}

/* Responsive - tool specific */
@media (max-width: 640px) {
    .options-section {
        flex-direction: column;
        gap: 1rem;
    }

    .option-group {
        width: 100%;
    }

    .option-group select {
        flex: 1;
    }

    .output {
        font-size: 0.75rem;
    }
}
