* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    height: 100vh;
}

#sidebar {
    width: 280px;
    min-width: 280px;
    background: #1a1a2e;
    color: #eee;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#sidebar h2 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #fff;
    border-bottom: 2px solid #0f3460;
    padding-bottom: 8px;
}

.section {
    background: #16213e;
    border-radius: 6px;
    padding: 12px;
}

.section h3 {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

#layer-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#layer-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    cursor: pointer;
}

#layer-controls input[type="checkbox"] {
    accent-color: #e94560;
}

#map {
    flex: 1;
    height: 100vh;
}

/* Feature editor form */
#feature-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #94a3b8;
}

#feature-form select,
#feature-form input,
#feature-form textarea {
    padding: 6px 8px;
    border: 1px solid #334155;
    border-radius: 4px;
    background: #0f172a;
    color: #eee;
    font-size: 0.9em;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    background: #334155;
    color: #eee;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #0f3460;
    color: #fff;
}

.btn-danger {
    background: #e94560;
    color: #fff;
}

/* Edits list */
#edits-list {
    max-height: 200px;
    overflow-y: auto;
}

.edit-item {
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #0f172a;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-item:hover {
    background: #1e293b;
}

.muted {
    color: #64748b;
    font-size: 0.8em;
}
