from pathlib import Path

# Load the current style.css
style_path = Path("/mnt/data/style.css")
original_css = style_path.read_text()

# Define the updated horizontal flexbox layout with modern styling
modern_horizontal_layout = """
/* === Modern Horizontal Layout === */
body {
    display: flex;
    flex-direction: row;
}

#main-container {
    display: flex;
    flex-direction: row;
    height: 90vh;
    width: 100%;
}

#controls {
    width: 30%;
    overflow-y: auto;
    background-color: #CBC3E3;
    padding: 20px;
}

#pedigree {
    width: 70%;
    overflow-x: auto;
    background-color: #DAB1DA;
    padding: 20px;
}

h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 20px 0 10px 0;
    padding: 0 20px;
    background-color: #ffffff;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 6px 2px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

input.ind,
input[type="text"],
select,
textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    font-family: monospace;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}
"""

# Combine original CSS with the modern layout
combined_css = original_css + "\n\n" + modern_horizontal_layout

# Save the modified CSS
modern_layout_path = Path("/mnt/data/style_horizontal_modern.css")
modern_layout_path.write_text(combined_css)

modern_layout_path.name
