body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 20px;
    background: #f4f4f7;
    color: #333;
}

.container {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.controls {
    flex: 1;
    min-width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: fit-content;
}

.main-view {
    flex: 2;
    min-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#map {
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid #fc4c02;
    padding-bottom: 5px;
    margin: 5px 0 0 0;
    color: #fc4c02;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row {
    display: flex;
    gap: 10px;
}

.row>.input-group {
    flex: 1;
}

label {
    font-weight: 600;
    font-size: 12px;
    color: #444;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

button {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #111;
}

#previewBtn {
    background: #fc4c02;
}

#previewBtn:hover {
    background: #e34402;
}

#downloadBtn {
    background: #007f5f;
    display: none;
    margin-top: 10px;
}

#downloadBtn:hover {
    background: #00644b;
}

.btn-secondary {
    background: #555;
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 5px;
}

.status-box {
    background: #eef2f5;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #dce4e8;
}

.status-box span {
    font-weight: bold;
    color: #fc4c02;
}

.charts-container {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    gap: 20px;
}

.chart-wrapper {
    height: 200px;
    width: 100%;
}

.action-row {
    display: flex;
    gap: 10px;
}

.action-row button {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}