body, html { margin: 0; padding: 0; height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow: hidden; }
#map { height: 100vh; width: 100vw; z-index: 1; }

.control-panel {
    position: absolute; top: 20px; right: 20px; background: white; padding: 15px;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); z-index: 1000;
    display: flex; flex-direction: column; gap: 12px; width: 340px; max-height: 90vh; overflow-y: auto;
}

.user-header { display: flex; justify-content: space-between; align-items: center; background: #ecf0f1; padding: 8px; border-radius: 5px; font-size: 13px; }
.user-header span { font-weight: bold; color: #2c3e50; }
.logout-btn { background: #e74c3c; color: white; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-size: 11px;}

.floating-modal {
    display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; padding: 20px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001; width: 450px; max-width: 90vw; max-height: 80vh; overflow-y: auto;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal-header h3 { margin: 0; color: #2c3e50; }
.close-btn { cursor: pointer; color: #e74c3c; font-weight: bold; font-size: 18px; }

select, button, input[type="text"] { padding: 8px 12px; font-size: 14px; border-radius: 4px; border: 1px solid #ccc; width: 100%; box-sizing: border-box; }
button.btn-primary { background-color: #2980b9; color: white; border: none; cursor: pointer; font-weight: bold; margin-top: 5px;}
button.btn-success { background-color: #27ae60; color: white; border: none; cursor: pointer; font-weight: bold; margin-top: 5px;}
button.btn-save { background-color: #8e44ad; color: white; border: none; cursor: pointer; font-weight: bold; margin-top: 5px;}

textarea { width: 100%; height: 150px; padding: 10px; font-family: monospace; font-size: 13px; border-radius: 4px; border: 1px solid #ccc; resize: vertical; box-sizing: border-box; margin-bottom: 10px; }
.checkbox-container { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.borne-label { background: #e74c3c; color: white; font-size: 12px; font-weight: bold; padding: 2px 5px; border-radius: 3px; border: 1px solid white; text-align: center; }
.distance-label { background: #2c3e50; color: white; font-size: 12px; font-weight: bold; padding: 2px 5px; border-radius: 3px; border: 1px solid white; text-align: center; }
.area-tooltip { background: rgba(255, 255, 255, 0.9); border: 2px solid #2980b9; color: #2c3e50; font-weight: bold; text-align: center; }
.form-group { margin-bottom: 5px; }
.form-group label { font-size: 12px; font-weight: bold; color: #555; display: block; margin-bottom: 3px; }
#custom-epsg { display: none; background: #f9f9f9; padding: 10px; border-radius: 5px; border: 1px solid #e0e0e0; margin-top: 5px; }
.epsg-flex { display: flex; gap: 5px; }

.project-item { background: #f1f2f6; padding: 10px; margin-bottom: 10px; border-radius: 5px; display: flex; justify-content: space-between; align-items: center;}
.project-item button { width: auto; padding: 5px 10px; font-size: 12px; margin: 0 2px;}
