body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 40px;
}

.main-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1050px; /* Toplam genişliği biraz daralttık */
    width: 100%;
}

.column {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1; /* Her sütuna eşit genişlik verdik */
    min-width: 300px; /* Çok küçülmesini engelledik */
    box-sizing: border-box;
    /* ÖNEMLİ: Taşmayı engellemek için overflow ayarı */
    overflow: hidden; 
}

h2 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Hesaplayıcı ve sonuç alanı stilleri */
label, select, input, button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}
select, input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

/* Önizleme Alanı Stilleri */
.preview-container {
    text-align: center;
}

#svg-area {
    background-color: #f0f8ff;
    border: 1px dashed #aaa;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    /* SVG'nin kutuya sığması için: */
    display: flex;
    justify-content: center;
    align-items: center;
}

#shape-svg {
    border: 1px solid #ddd;
    background-color: #e6f7ff;
    max-width: 100%; /* Çizimin kapsayıcıya sığmasını sağlar */
    height: auto;
}

/* Sonuç Alanı Stili */
#result-area {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #28a745;
    background-color: #e2f0e9;
    color: #155724;
    border-radius: 4px;
    font-weight: bold;
    display: none;
    word-wrap: break-word; /* Uzun metinlerin taşmasını engeller */
}