.tool-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.converter-layout {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.editor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pane-header {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.pane-footer {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

textarea {
    flex: 1;
    width: 100%;
    resize: none;
    border: none;
    padding: 1rem;
    font-family: monospace;
    font-size: 14px;
    outline: none;
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.primary-btn {
    padding: 0.8rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.copy-btn:hover {
    background-color: #218838;
}

.error-msg {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.error-msg.hidden {
    display: none;
}

.format-select label {
    margin-right: 0.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .converter-layout {
        flex-direction: column;
    }

    .editor-pane {
        width: 100%;
        height: 300px;
    }

    .actions {
        flex-direction: row;
    }
}