:root {
    --primary: #2c3e50;
    --accent: #2980b9;
    --success: #27ae60;
    --bg: #f4f7f6;
    --panel-bg: #eef6fc;        
    --bevel-stroke: #b0c4de;    
    --cut-stroke: #546e7a;      
    --error-bg: #ffebee;
    --error-text: #c62828;
    --error-border: #ef9a9a;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 20px;
    color: #333;
}

.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.controls {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.visualization {
    flex: 1.5;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
}

h2 { color: var(--primary); margin-top: 0; }

.input-group { margin-bottom: 15px; }

label { display: block; font-weight: 600; margin-bottom: 5px; color: #555; }

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; 
}

.btn-pdf {
    width: 100%;
    padding: 12px;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pdf:hover { background-color: #219150; }

.warning-box {
    display: none;
    background-color: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9em;
    line-height: 1.4;
}

.warning-box strong {
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.85em;
}

.results-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.95em; }
.results-table td { padding: 8px 0; border-bottom: 1px solid #eee; }
.results-table td:last-child { text-align: right; font-weight: bold; color: var(--primary); }
.highlight { color: var(--accent) !important; font-size: 1.1em; }

svg { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    background-color: #fff; 
    display: block;
}

@media (max-width: 800px) {
    .main-wrapper { flex-direction: column; }
    .controls { border-right: none; padding-right: 0; }
}