/* YAML <-> JSON Converter - tool-specific styles */

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mode-toggle-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 4px;
}

.mode-btn {
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.mode-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mode-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.editor-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.editor-head label {
    font-weight: 700;
    color: #374151;
    font-size: 0.88rem;
}

.editor-actions {
    display: flex;
    gap: 6px;
}

.editor-pane textarea {
    width: 100%;
    min-height: 340px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    resize: vertical;
    background: var(--light-bg);
    color: #1f2937;
    tab-size: 2;
}

.editor-pane textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.editor-pane textarea[readonly] {
    background: #f9fafb;
}

.center-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.center-actions .action-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
}

.center-actions .action-button.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.center-actions .action-button.primary:hover {
    background: #0d655e;
    border-color: #0d655e;
}

.success-message {
    background: #f0fdf4;
    border-left: 4px solid var(--success-color);
    color: #166534;
}

@media (max-width: 860px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-pane textarea {
        min-height: 240px;
    }
}
