* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-weight: bold;
    font-size: 14px;
}

.control-group input,
.control-group button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.control-group button {
    background: #007acc;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.control-group button:hover {
    background: #005a9e;
}

.control-group small {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.main-content {
    display: flex;
    gap: 20px;
}

.canvas-container {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

#mapCanvas {
    border: 2px solid #ccc;
    cursor: crosshair;
    max-width: 100%;
}

.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reference-points,
.route-planning,
.curve-settings,
.altitude-settings {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.reference-points h3,
.route-planning h3,
.curve-settings h3,
.altitude-settings h3 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #007acc;
    padding-bottom: 5px;
}

#referenceList {
    max-height: 200px;
    overflow-y: auto;
}

.reference-item {
    padding: 8px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007acc;
}

.route-input textarea {
    width: 100%;
    height: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
    font-size: 12px;
}

.route-input button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.route-input button:hover {
    background: #218838;
}

.curve-settings label, .altitude-settings label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: bold;
}

.curve-settings input, .altitude-settings input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.mode-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    background: #007acc;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}