/* =================================
   Simplified Single-Column Layout
   ================================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f9;
    color: #333;
}

h1, h2, h3 {
    text-align: center;
}

h1 {
    color: #0056b3;
    margin-bottom: 30px;
}

/* --- Main Container: Always Vertical --- */
.converter-container {
    display: flex;
    flex-direction: column; /* This is the only layout direction now */
    gap: 20px; /* Space between panels and controls */
    align-items: center; /* Center the items horizontally */
}

.panel {
    width: 100%; /* Panels take full width */
    max-width: 800px; /* Limit max width for very large screens */
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Height is now controlled by the textarea inside */
}

textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    
    /* Fixed height for all textareas */
    height: 250px;
    min-height: 200px;
    resize: vertical; /* Allow vertical resizing */
}

#csv-output {
    background-color: #e9ecef;
}

/* --- Controls: Always a Horizontal Row --- */
.controls {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

button:hover {
    background-color: #0056b3;
}

/* --- SEO Content Area --- */
.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* NO @media tags. NO flex-direction: row for the main container. */
